Code Monkey home page Code Monkey logo

jrand's People

Contributors

adamgaltrey avatar xdrop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jrand's Issues

maven dependency broken

tried to use this from maven.

it doesn't work, the sub-modules are not available on maven

maven error

image

The above error is shown when jrand dependency is added

Release is broken for Gradle!

Adding this project as a dependency in a Gradle project with compile 'me.xdrop:jrand:0.2.5-alpha' does not work!.

The following errors show up when invoking gradle dependencies:

compile - Dependencies for source set 'main' (deprecated, use 'implementation' instead).
\--- me.xdrop:jrand:0.2.5-alpha
     +--- me.xdrop:jrand-core:0.2.5-alpha FAILED
     +--- me.xdrop:jrand-test:0.2.5-alpha FAILED
     \--- me.xdrop:jrand-annotation-processor:0.2.5-alpha FAILED

Generate Mulitple of specific integer with NaturalGenerator

Hi . I would like to ask is there a way to generate a random natural number which is a multiple of a specific factor n?

For example:

int factor = 3;
NaturalGenerator naturalGenerator = JRand.natural();
naturalGenerator.min(0);
naturalGenerator.max(999);
//do something with factor
int randomMultiple = naturalGenerator.gen();

Flush "properties"/methods?

Im having issues with using the string generator multiple times. Somehow if i set some "properties"/use some methods for the first string it works as it should.... but if try generating a second string afterwards, it uses the "properties"/methods for the new string and merges them with the newly set generator "properies"
Here an Example for that:

public static void main(String[] args) {
        StringGenerator StringGenerator = JRand.string();
        String String1 = StringGenerator.alpha().casing("upper").length(3).gen();
        String String2 = StringGenerator.symbols().length(3).gen();
        System.out.print("String 1: " + String1 + " String 2: " + String2);
}

This gives me this: String 1: THS String 2: (PL

I found a Workaround for this by adding StringGenerator = JRand.string(); between the lines where the strings are generated, but ist there an easyer way for that like StringGenerator.flush() or is that just an issue with that Library? Or even better, so that .gen() empties out the pool every time it's used.

Real words

I like this, but would like to generate sentences with real words.

would it be possible?

Can not download with sbt

Hi,
this project on maven central can not be downloaded with 'sbt' since its 'compile' dependencies
are not reachable (they can not be located on maven central).
Tried with version 0.2.5-alpha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.