525 B
525 B
math_RandomSetSeed
Seed the pseudo random number generator.
Seeding the random number generator the same number will always yield the same random number.
Arguments
- seed (int): Seed
Returns
math_RandomSetSeed does not return anything.
Example
call !math_RandomSetSeed 123 &
call !math_Random 1 6 &dice
println $dice # some number
call !math_RandomSetSeed 123 &
call !math_Random 1 6 &dice
println $dice # the same number
# (i cant test this cause libraries are broken as am i writing docs lmao)