4 ms·
Any language that allows the PRNG to be manually seeded, presumably? I mean, if manually seeding the PRNG doesn't produce a deterministic result, you wouldn't
by michaelt 12y ago
Any language that allows the PRNG to be manually seeded, presumably?
I mean, if manually seeding the PRNG doesn't produce a deterministic result, you wouldn't make it part of the API.
- SeanLuke 12y agoNope. Essentially all languages allow manual seeding: almost none specify guarantees with regard to RNG behavior. I'm pretty sure this is because determinism of a given process important (everyone who does simulation needs that), but locking into potentially bad RNGs for the language or library itself, in fact specifying them, is a really bad idea.
- TheLoneWolfling 12y agoCounterexample: Python [1] [1] http://stackoverflow.com/a/19179886/1814881 http://stackoverflow.com/a/19179886/1814881