Skip to content

Core\Random\Seeded

A random generator that starts from a seed you give it, so the same seed gives the same values every time. Use it for tests and simulations. For a key, a code or a token, use Core\Random.

Members

7 members.

MemberSignature
intint(int $min, int $max): int
floatfloat(): float
bytesbytes(uint $count): tainted bytes
tokentoken(uint $bytes = 32): tainted string
pickpick(array<T> $a): ?T
samplesample(array<T> $a, uint $count): array<T>
shuffleshuffle(array<T> $a): array<T>