Reinitialize the pseudo-random generator used by the method rand and other.

This method is automatically invoked at the begin of the program, so usually, there is no need to manually invoke it. The only exception is in conjunction with srand_from to reset the pseudo-random generator.

Property definitions

core :: math $ Sys :: srand
# Reinitialize the pseudo-random generator used by the method `rand` and other.
# This method is automatically invoked at the begin of the program, so usually, there is no need to manually invoke it.
# The only exception is in conjunction with `srand_from` to reset the pseudo-random generator.
fun srand `{ nit_rand_seeded = 0; srand((unsigned int)time(NULL)); `}
lib/core/math.nit:571,1--574,69