package wip
This commit is contained in:
20
math/docs/random/random_set_seed.md
Normal file
20
math/docs/random/random_set_seed.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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)
|
||||
```
|
||||
Reference in New Issue
Block a user