Open enci opened 1 year ago
The no args constructor for Random creates an objects with the same seed within the same second, because time() has second resolution. Adding clock() to the seed removes this implicit and undocumented behavior.
time()
clock()
The no args constructor for Random creates an objects with the same seed within the same second, because
time()
has second resolution. Addingclock()
to the seed removes this implicit and undocumented behavior.