|
The Random\Randomizer classIntroductionProvides a high-level API to the randomness provided by an Random\Engine. Class synopsis
final
Random\Randomizer
/* Properties */
public
readonly
Random\Engine
$engine;
/* Methods */
public __construct(Random\Enginenull
$engine = null)public string getBytes(int
$length)public string getBytesFromString(string
$string, int $length)public float getFloat(float
$min, float $max, Random\IntervalBoundary $boundary = Random\IntervalBoundary::ClosedOpen)public int getInt(int
$min, int $max)public float nextFloat()
public int nextInt()
public array pickArrayKeys(array
$array, int $num)public array __serialize()
public array shuffleArray(array
$array)public string shuffleBytes(string
$bytes)public void __unserialize(array
$data)Properties
|