HH\Lib\PseudoRandom\float
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as PseudoRandom\float()
in Facebook's www repository.
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
.
Returns
float