Need to implement a thread-safe random number generator. The current random number generator (RNG) does not seem to be thread-safe or random. For example, a call to rng.random(3) in random_atom() returned 3. It should have returned a number from (0, 2) inclusive.
Need to implement a thread-safe random number generator. The current random number generator (RNG) does not seem to be thread-safe or random. For example, a call to rng.random(3) in random_atom() returned 3. It should have returned a number from (0, 2) inclusive.
See https://stackoverflow.com/questions/21237905/how-do-i-generate-thread-safe-uniform-random-numbers for an example.