RandBasis

object RandBasis
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

Returns a new MersenneTwister-backed rand basis with seed set to 0. Note that if multiple threads use this, each thread gets a new generator with an increasing random seed.

Returns a new MersenneTwister-backed rand basis with seed set to 0. Note that if multiple threads use this, each thread gets a new generator with an increasing random seed.

Returns a new MersenneTwister-backed rand basis with "no seed" (i.e. it uses the time plus other metadata to set the seed if multiple threads use this, each thread gets a new generator also initialized with "no seed"

Returns a new MersenneTwister-backed rand basis with "no seed" (i.e. it uses the time plus other metadata to set the seed if multiple threads use this, each thread gets a new generator also initialized with "no seed"

def withSeed(seed: Int): RandBasis

Returns a new MersenneTwister-backed rand basis with seed set to a specific value if multiple threads use this, each thread gets a new generator with an increasing random (starting from seed)

Returns a new MersenneTwister-backed rand basis with seed set to a specific value if multiple threads use this, each thread gets a new generator with an increasing random (starting from seed)