RandomGenerator:setSeed

Edit

Seed the RandomGenerator with a new seed. Each seed will cause the RandomGenerator to produce a unique sequence of random numbers.



Arguments

NameTypeDescription
seednumber The random seed.

Returns

Nothing

Arguments

NameTypeDescription
lownumber The lower 32 bits of the seed.
highnumber The upper 32 bits of the seed.

Returns

Nothing

Notes

For precise 64 bit seeds, you should specify the lower and upper 32 bits of the seed separately. Otherwise, seeds larger than 2^53 will start to lose precision.

See also