rand
Random number generator.
Syntax
rand()
Example
| Templex Expression | Results | 
|---|---|
{rand()} | 
                                0.6897535 | 
                            
{int(6 * (rand())) + 1} | 
                                4 | 
                            
Comments
rand generates numbers from 0 up to 1 (including 0 but not 1) that are evenly distributed. Use the int function to produce integer values.
The results above may vary.