Package org.apache.hadoop.hbase.util
Class RandomDistribution.Flat
java.lang.Object
org.apache.hadoop.hbase.util.RandomDistribution.Flat
- All Implemented Interfaces:
RandomDistribution.DiscreteRNG
- Enclosing class:
- RandomDistribution
public static final class RandomDistribution.Flat
extends Object
implements RandomDistribution.DiscreteRNG
P(i)=1/(max-min)
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
random
-
min
-
max
-
-
Constructor Details
-
Flat
Generate random integers from min (inclusive) to max (exclusive) following even distribution. The basic random number generator. Minimum integer maximum integer (exclusive).
-
-
Method Details
-
nextInt
Description copied from interface:RandomDistribution.DiscreteRNG
Get the next random number- Specified by:
nextInt
in interfaceRandomDistribution.DiscreteRNG
- Returns:
- the next random number.
- See Also:
-