3 ms·
Yes, absolutely. That can be done using the global state (i.e. calling rand() or random()), or is probably better done by pulling from the system entropy pool (
by mjb 12y ago
Yes, absolutely. That can be done using the global state (i.e. calling rand() or random()), or is probably better done by pulling from the system entropy pool (via /dev/urandom on Linux).
- mbq 12y agoStill no good; you can get spurious correlations between rng outputs on each core. You need something like L'Ecuyer RNG streams.
- ScottBurson 12y agoWell, using /dev/urandom is a vast improvement over doing nothing. But your point is well taken. People doing serious Monte Carlo simulations should probably use a more sophisticated RNG.