Random.value

static var value : float

Description

Returns a random number between 0.0 [inclusive] and 1.0 [inclusive] (Read Only).

Both 0.0 and 1.0 may be returned by this function.

JavaScript
    // Prints something between 0 and 1
print(Random.value);