Files
Digpkg/math/docs/random/random_set_seed.md
2026-01-23 16:47:56 +11:00

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)