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