SetRandomSeed
Sets the seed for the random number generator to a particular value.
Syntax
-
SetRandomSeed(n)
-
n
is a 32-bit integer
-
Description
SetRandomSeed(n)
sets the seed for the random number generator to n
, after which it will generate a sequence of pseudorandom numbers completely determined by n
.
Examples
SetRandomSeed(123456)
success
RandomIntVector(10, 0, 100)
(4, 58, 9, 13, 27, 25, 59, 59, 29, 33)
RandomIntVector(10, 0, 100)
(36, 50, 38, 63, 96, 37, 87, 13, 12, 11)
SetRandomSeed(123456)
success
RandomIntVector(10, 0, 100)
(4, 58, 9, 13, 27, 25, 59, 59, 29, 33)
RandomIntVector(10, 0, 100)
(36, 50, 38, 63, 96, 37, 87, 13, 12, 11)