public final class RandomPicker extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getInt(int n)
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive)
and the specified value (exclusive), drawn from this random number generator's sequence.
|
static int |
getInt(int low,
int high)
Return a pseudorandom, uniformly distributed in value between the low value (inclusive) and
the high value (exclusive), drawn from this random number generator's sequence.
|
public static int getInt(int n)
n
- the specified valuepublic static int getInt(int low, int high)
low
- lowest value of the range (inclusive)high
- highest value of the range (exclusive)Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.