20 lines
525 B
Markdown
20 lines
525 B
Markdown
# 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
|
|
```python
|
|
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)
|
|
``` |