|
|
|
|
|
by midjji
1879 days ago
|
|
Recently noted that mt19937, mt19937_64 are much faster than the standard c++ random generator. They are also possibly better with regards to number distribution, but the performance difference is gigantic on clang. The standard 32 bit std::default_random_generator is almost 40x slower than the 64 bit mt19937_64 one across the board, from -o1 to -O3 march... etc. As all of them are also faster than old school rand, its worth upgrading for the performance increase if nothing else. |
|
https://prng.di.unimi.it
https://www.pcg-random.org
ETA: https://github.com/lemire/testingRNG