HH\Lib\SecureRandom\float

Requires the Hack Standard Library to be installed.

Returns a cryptographically secure random float in the range from 0

namespace HH\Lib\SecureRandom;

function float(): float;

0 to 1.0, inclusive.

For pseudorandom floats, see PseudoRandom\float.

Returns

  • float