HH\Lib\PseudoRandom\float

Requires the Hack Standard Library to be installed.

Returns a pseudorandom float in the range from 0

namespace HH\Lib\PseudoRandom;

function float(): float;

0 to 1.0, inclusive. This is NOT suitable for cryptographic uses.

For secure random floats, see SecureRandom\float.