### math.random

Supported in:

    math.random()

#### Description

Generates a pseudo-random value of type DOUBLE in the range of `[0, 1)`, inclusive of 0 and exclusive of 1.

#### Return type

`FLOAT`

#### Code samples

The following example checks whether the random value is in the range `[0, 1)`.
`none
if(math.random() >= 0 and math.random() < 1) = true`