package wip
This commit is contained in:
22
math/docs/random/random.md
Normal file
22
math/docs/random/random.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# math_Random
|
||||
Generate a random integer in the range provided.
|
||||
**IMPORTANT:** math_Random is **NOT** cryptographically secure! Use the `cryptography` library instead!
|
||||
If you want to generate a random double, use `math_RandomDouble`.
|
||||
|
||||
## Arguments
|
||||
- min (int): Smallest possible number
|
||||
- max (int): Largest possible number
|
||||
|
||||
## Returns
|
||||
randomNumber (int): A random number in the range provided
|
||||
|
||||
## Example
|
||||
```python
|
||||
call !math_Random 1 6 &dice
|
||||
println $dice # 3
|
||||
call !math_Random 1 6 &dice
|
||||
println $dice # 2
|
||||
call !math_Random 1 6 &dice
|
||||
println $dice # 6
|
||||
...
|
||||
```
|
||||
Reference in New Issue
Block a user