Reference | random()
| Syntax | random(v1=None, v2=None) | |
| Description | Returns a random number that can be assigned to a variable or a parameter. When no parameters are supplied, returns a floating-point (decimal) number between 0.0 and 1.0 (including 0.0 and 1.0). When one parameter is supplied, returns a number between 0 and this parameter. When two parameters are supplied, returns a number between the first and the second parameter. The random() command is useful for all sorts of operations, from random colors to lines with a random width. Note: new random values are returned each time the script runs. The variation can be locked by supplying a custom random seed: | |
| Returns | a random number (either an integer or floating-point) within the given boundaries | |
| Tutorial | Repetition | |
| Example |
|

