Returns a Stream of pseudorandomly chosen alphanumeric characters, equally chosen from A-Z, a-z, and 0-9.
Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.
Generates random bytes and places them into a user-supplied byte array.
Returns the next pseudorandom, uniformly distributed double value between 0.
Returns the next pseudorandom, uniformly distributed float value between 0.
Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.
Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.
Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.
Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.
Returns a pseudorandomly generated String.
Returns a new collection of the same type in a randomly chosen order.
The object
Random
offers a default implementation of scala.util.Random and random-related convenience methods.since
2.8