marcas91 / xeger

Automatically exported from code.google.com/p/xeger
0 stars 0 forks source link

Patch for /trunk/src/main/java/nl/flotsam/xeger/XegerUtils.java #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The previous implementation was non uniform in its results and also did not hit 
the boundary conditions. Changed to use Random.nextInt(limitExcl).

Ideally we would just change the calling code to use nextInt directly, but 
this'll work equally well.

Original issue reported on code.google.com by TStevens...@gmail.com on 14 Oct 2011 at 4:21

Attachments: