ByteNumberGenerator
class ByteNumberGenerator implements NumberGenerator (View source)
A random number generator that wraps the given byte generator for generating integers.
Methods
bool
isSupported()
Tells if the underlying byte generator is supported by the system.
string
getBytes(int $count)
Returns bytes read from the provided byte generator.
int
getNumber(int $min, int $max)
Returns a random integer between given minimum and maximum.