public class TransientRandom extends Object
Constructor and Description |
---|
TransientRandom() |
Modifier and Type | Method and Description |
---|---|
Random |
get()
Get instance of Random
|
double |
nextDouble()
Returns the next pseudorandom, uniformly distributed
double value between 0.0 and
1.0 from this random number generator's sequence. |
int |
nextInt(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. |
public Random get()
public int nextInt(int n)
int
value
between 0 (inclusive) and the specified value (exclusive), drawn from
this random number generator's sequence.n
- Given upper limitpublic double nextDouble()
double
value between 0.0
and
1.0
from this random number generator's sequence.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.