List of usage examples for org.apache.commons.lang.math RandomUtils nextDouble
public static double nextDouble(Random random)
Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the given Random sequence.
From source file:org.isisaddons.module.fakedata.dom.Doubles.java
@Programmatic public double any() { return fake.booleans().coinFlip() ? RandomUtils.nextDouble(fake.random) * Double.MAX_VALUE : -RandomUtils.nextDouble(fake.random) * Double.MAX_VALUE; }