Skip to content
/ jRand Public

A Java library to generate random data for all sorts of things. Java random data faker

License

Notifications You must be signed in to change notification settings

xdrop/jRand

Repository files navigation

Build Status Documentation Download

Java library for random data generation.

JRand is heavily inspired by ChanceJS and tries to bring together a lot of that functionality to Java. In JRand there are Generator's which are reusable components to generate all sorts of things. You can get access to any generator you wish via the JRand facade class.

The library is still under development with weekly releases of new generators.

Examples

Builder style random data generators with a lot of options

JRand.string().pool("abcd").length(3).gen();
=> "bcc"

JRand.firstname().gender("m").gen();
=> "Sean"

// ...Read our documentation for a lot more examples!

>>> Documentation

Installation

You can install JRand via Maven Central:

Maven

<dependency>
  <groupId>me.xdrop</groupId>
  <artifactId>jrand</artifactId>
  <version>0.2.5-alpha</version>
</dependency>

Gradle:

compile 'me.xdrop:jrand:0.2.5-alpha'

Generators

Basic

Text

Person

Location

Time

Money

Documentation

You can access documentation here

License

Copyright 2018 - xdrop

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.