srand()
function srand(?int $seed = null, int $mode = 0): void
Seed the 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 srand is implemented in the compiler, see the internals page.