jrand

Java random data generation library

License

License

GroupId

GroupId

me.xdrop
ArtifactId

ArtifactId

jrand
Last Version

Last Version

0.2.7-alpha
Release Date

Release Date

Type

Type

jar
Description

Description

jrand
Java random data generation library
Source Code Management

Source Code Management

https://github.com/xdrop/jrand

Download jrand

How to add to project

<!-- https://jarcasting.com/artifacts/me.xdrop/jrand/ -->
<dependency>
    <groupId>me.xdrop</groupId>
    <artifactId>jrand</artifactId>
    <version>0.2.7-alpha</version>
</dependency>
// https://jarcasting.com/artifacts/me.xdrop/jrand/
implementation 'me.xdrop:jrand:0.2.7-alpha'
// https://jarcasting.com/artifacts/me.xdrop/jrand/
implementation ("me.xdrop:jrand:0.2.7-alpha")
'me.xdrop:jrand:jar:0.2.7-alpha'
<dependency org="me.xdrop" name="jrand" rev="0.2.7-alpha">
  <artifact name="jrand" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.xdrop', module='jrand', version='0.2.7-alpha')
)
libraryDependencies += "me.xdrop" % "jrand" % "0.2.7-alpha"
[me.xdrop/jrand "0.2.7-alpha"]

Dependencies

compile (3)

Group / Artifact Type Version
me.xdrop » jrand-core jar 0.2.7-alpha
me.xdrop » jrand-test jar 0.2.7-alpha
me.xdrop » jrand-annotation-processor jar 0.2.7-alpha

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.2.7-alpha
0.2.6-alpha
0.2.5-alpha
0.2.4-alpha
0.2.3-alpha
0.2.2-alpha
0.2.0-alpha