|
|||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |
java.util.Random
(also here as
LCG).
boolean
value
checking most significant bit.
boolean
value (like
coin flip).
byte
value.
byte
value.
char
value.
char
value
UNICODE
encoded.
char
value
US-ASCII
encoded.
double
value
between 0.0
(inclusive) and 1.0
(exclusive).
double
value chosen pseudorandomly with (approximately)
uniform distribution from open interval [from,to] (excluding
from and to).
double
value between 0.0
(inclusive) and 1.0
(exclusive).
float
value
between 0.0
(inclusive) and 1.0
(exclusive).
float
value chosen pseudorandomly with (approximately)
uniform distribution from open interval [from,to] (excluding
from and to).
float
() value between 0.0
(inclusive) and 1.0
(exclusive).
double
value with mean 0.0
and standard
deviation 1.0
from this random number generator's sequence.
double
value with the given mean, mu
and the
given standard deviation, sigma
.
length
.
int
value.
int
value chosen
pseudorandomly with (approximately) uniform distribution from range
0
(inclusive) to n
(exclusive).
int
value.
int
value drawn uniformly
from 0
to n-1
.
long
value.
long
value
chosen pseudorandomly with (approximately) uniform distribution from
range 0
(inclusive) to n
(exclusive).
long
value
chosen pseudorandomly with (approximately) uniform distribution from
closed interval [from,to] (including from and
to).
long
value.
long
value drawn uniformly
from 0
to n-1
.
boolean
with a specified probability
of returning true
, else returning false
.
boolean
with a specified probability
of returning true
, else returning false
.
short
value.
short
() value
(typically from nextInt
value returned two most significant
bytes).
System.currentTimeMillis()
and System.nanoTime()
.
|
|||||||||
PREV LETTER NEXT LETTER | FRAMES NO FRAMES |