src/Generator.php
protected static function getRandomArray($length)
    {
        $bytes = random_bytes($length * 2);
        $result = [];
        foreach (unpack('S*', $bytes) as $long) {
            $result[] = $long / 0xFFFF;
        }
        return $result;
    }
protected static function getRandomArray($length)
    {
        $bytes = random_bytes($length * 2);
        $result = [];
        foreach (unpack('S*', $bytes) as $long) {
            $result[] = $long / 0xFFFF;
        }
        return $result;
    }
protected static function getRandomArray ( $ length ) { $ bytes = random_bytes ( $ length * 2 ) ; $ result = [ ] ; foreach ( unpack ( 'S*' , $ bytes ) as $ long ) { $ result [ ] = $ long / 0xFFFF ; } return $ result ; }
Get array of random numbers between 0.0 - 1.0.

@param int $length Array length.

@return float[] Array of random values 0.0 - 1.0.
Get array of random numbers between 0 . 0 - 1 . 0 .