Skip to main content
Version: Next

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​

NameValue
E2.718281828459045
Ln102.302585092994046
Ln20.6931471805599453
Log10E0.4342944819032518
Log2E1.4426950408889634
Phi1.618033988749895
Pi3.141592653589793
Sqrt21.4142135623730951
SqrtE1.6487212707001282
SqrtPhi1.272019649514069
SqrtPi1.772453850905516