mt_srand()
function mt_srand(?int $seed = null, int $mode = 0): void
Seed the Mersenne Twister random number generator.
Parameters:
$seed(?int), defaultnull, optional$mode(int), default0, optional
Returns: void
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Not available yet |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mt_srand is implemented in the compiler, see the internals page.