ThreadLocalRandomGenerator

An Apache-compatible RandomGenerator that creates a new RandomGenerator per thread. The thunk should be thread-safe, using atomics or something.

trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def nextBytes(bytes: Array[Byte]): Unit
def nextInt(): Int
def nextInt(n: Int): Int
def nextLong(): Long
def setSeed(seed: Long): Unit
def setSeed(seed: Array[Int]): Unit
def setSeed(seed: Int): Unit