RandThreadSafe Type

Record fields

Record Field Description

rnd

Full Usage: rnd

Field type: ThreadLocal<Random>
Modifiers: mutable
Field type: ThreadLocal<Random>

Constructors

Constructor Description

RandThreadSafe(n)

Full Usage: RandThreadSafe(n)

Parameters:
    n : int

Returns: RandThreadSafe

If n is negative, the random number generator seed is based on system time, if it is zero or positive it will use n as the seed.

n : int
Returns: RandThreadSafe

RandThreadSafe()

Full Usage: RandThreadSafe()

Returns: RandThreadSafe

Constructs the default random number generator using a time dependent default seed value.

Returns: RandThreadSafe