Zend\Math\Rand::getFloat
Generate random float (0..1) This function generates floats with platform-dependent precision
PHP uses double precision floating-point format (64-bit) which has 52-bits of significand precision. We gather 7 bytes of random data, and we fix the exponent to the bias (1023). In this way we generate a float of 1.mantissa.
Signature
public function getFloat([bool
$strong = false] )
Parameters
$strong
— object- true if you need a strong random generator (cryptography)
Returns
- float