4 ms·
Minor qualm: is rand defined?
by TheLoneWolfling 13y ago
Minor qualm: is rand defined?
- apgwoz 13y agoWell, rand can be defined as a Linear Congruential Generator (https://en.wikipedia.org/wiki/Linear_congruential_generator https://en.wikipedia.org/wiki/Linear_congruential_generator), or some other well known algorithm. LCG's don't require anything that the machine doesn't already do (mod, addition and multiplication)
- rca 13y agoYou could use rdrand if you're on (a recent enough) x86. You just lose some portability. Probably not a major issue at this point.