Java org.apache.commons.lang.math RandomUtils fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.math RandomUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.math RandomUtils.

The text is from its open source code.

Field

RandomJVM_RANDOM
An instance of JVMRandom .

Method

booleannextBoolean()

Returns the next pseudorandom, uniformly distributed boolean value from the Math.random() sequence.

doublenextDouble()

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the Math.random() sequence.

doublenextDouble(Random random)

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the given Random sequence.

floatnextFloat()

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the Math.random() sequence.

floatnextFloat(Random random)

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the given Random sequence.

intnextInt()

Returns the next pseudorandom, uniformly distributed int value from the Math.random() sequence.

intnextInt(Random random)

Returns the next pseudorandom, uniformly distributed int value from the given random sequence.

intnextInt(int n)

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), from the Math.random() sequence.

intnextInt(Random random, int n)

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), from the given Random sequence.

longnextLong()

Returns the next pseudorandom, uniformly distributed long value from the Math.random() sequence.

longnextLong(Random random)

Returns the next pseudorandom, uniformly distributed long value from the given Random sequence.