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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
random
- 
min
- 
max
 
- 
- 
Constructor Details- 
FlatGenerate random integers from min (inclusive) to max (exclusive) following even distribution. The basic random number generator. Minimum integer maximum integer (exclusive).
 
- 
- 
Method Details- 
nextIntDescription copied from interface:RandomDistribution.DiscreteRNGGet the next random number- Specified by:
- nextIntin interface- RandomDistribution.DiscreteRNG
- Returns:
- the next random number.
- See Also:
 
 
-