2 ms·
The random number generator needs to give the same outcomes on both ends so that you don’t need to transfer results. To this end, you have to use the same deter
by thatjoeoverthr 5y ago
The random number generator needs to give the same outcomes on both ends so that you don’t need to transfer results. To this end, you have to use the same deterministic generator code, seed and ensure you call it the same number of times on each system. This last point is because queries to a random number generator also change its state. If system A and B start with some seed, but system A calls it 30 times and system B 29 times, the next call will yield a different result on each system.