ThreadSafeRandom Module

Functions and values

Function or value Description

next minInclusive maxExclusive

Full Usage: next minInclusive maxExclusive

Parameters:
    minInclusive : int
    maxExclusive : int

Returns: int

generate a new random int32 value bounded to [minInclusive; maxExclusive)

minInclusive : int
maxExclusive : int
Returns: int

nextBytes buffer

Full Usage: nextBytes buffer

Parameters:
    buffer : byte[]

fill buffer with random bytes

buffer : byte[]

nextUInt64 ()

Full Usage: nextUInt64 ()

Parameters:
    () : unit

Returns: uint64

generate a new random ulong64 value

() : unit
Returns: uint64