Header menu logo FSharp.Stats

RandThreadSafe Type

A standard implementation of a uniform random source using Random that is thread-safe.

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 - 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.

Returns: RandThreadSafe

Constructs a random number generator with the specified seed value.

n : int

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.

Returns: RandThreadSafe

RandThreadSafe()

Full Usage: RandThreadSafe()

Returns: RandThreadSafe

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

Returns: RandThreadSafe

Type something to start searching.