Randomizer
final class Randomizer (View source)
Properties
Engine | $engine |
Methods
__construct(Engine|null $engine = null)
No description
int
nextInt()
No description
int
getInt(int $min, int $max)
No description
string
getBytes(int $length)
No description
array
shuffleArray(array $array)
No description
string
shuffleBytes(string $bytes)
No description
array
pickArrayKeys(array $array, int $num)
No description
array
__serialize()
No description
void
__unserialize(array $data)
No description
float
nextFloat()
No description
float
getFloat(float $min, float $max, IntervalBoundary $boundary = IntervalBoundary::ClosedOpen)
No description
string
getBytesFromString(string $string, int $length)
No description
Details
__construct(Engine|null $engine = null)
No description
int
nextInt()
No description
int
getInt(int $min, int $max)
No description
string
getBytes(int $length)
No description
array
shuffleArray(array $array)
No description
string
shuffleBytes(string $bytes)
No description
array
pickArrayKeys(array $array, int $num)
No description
array
__serialize()
No description
void
__unserialize(array $data)
No description
float
nextFloat()
Since: 8.3
No description
float
getFloat(float $min, float $max, IntervalBoundary $boundary = IntervalBoundary::ClosedOpen)
Since: 8.3
No description
string
getBytesFromString(string $string, int $length)
Since: 8.3
No description