Synopsis:
Sets the random number seed to an integer computed from s. Every character of the string contributes to the seed, but only 32 bits of data are used. The sequence of future pseudo-random results is determined by the seed.
i1 : setRandomSeed "thrkwjsxz" |
i2 : for i to 10 list random 100 |
i3 : setRandomSeed "thrkwjsxz" |
i4 : for i to 10 list random 100 |
Code:
-- ../../../Macaulay2/m2/system.m2:12 setRandomSeed String := seed -> setRandomSeed fold((i,j) -> 101*i + j, 0, ascii seed)