Math
Module Function​
random()​
Returns
FLOAT
Returns a pseudo-random number in the half-open interval [0.0, 1.0).
Math.random()
Output
0.6046602879796196
Properties​
| Name | Value |
|---|---|
| E | 2.718281828459045 |
| Ln10 | 2.302585092994046 |
| Ln2 | 0.6931471805599453 |
| Log10E | 0.4342944819032518 |
| Log2E | 1.4426950408889634 |
| Phi | 1.618033988749895 |
| Pi | 3.141592653589793 |
| Sqrt2 | 1.4142135623730951 |
| SqrtE | 1.6487212707001282 |
| SqrtPhi | 1.272019649514069 |
| SqrtPi | 1.772453850905516 |