Interface Generator
-
public interface Generator
- Author:
- osborn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
nextBits(int numBits)
Returns an int of which thenumBits
low-order bits are pseudo-random.double
nextDouble()
Returns uniform draw on [0,1).int
nextInt(int n)
Returns uniformly drawn integer between 0 (inclusive) and n (exclusive).
-
-
-
Method Detail
-
nextDouble
double nextDouble()
Returns uniform draw on [0,1).
-
nextInt
int nextInt(int n)
Returns uniformly drawn integer between 0 (inclusive) and n (exclusive).
-
nextBits
int nextBits(int numBits)
Returns an int of which thenumBits
low-order bits are pseudo-random.numBits
should be between 1 and 32 (inclusive).
-
-