How do random number generator works? (for example in C/C++ Java)
How can I write my own random number generator? (for example in C/C++ Java)
How do random number generator works? (for example in C/C++ Java)
How can I write my own random number generator? (for example in C/C++ Java)
Depends on the goal: speed vs quality vs security.
Speed & Security: Linear Congruence is straight forward and does not depend on a public source, privacy of a key is crucial for crypto systems.
Quality: random.org is a source of true random, where you get about 10000 16-Bit values per day free.
Combining several random sources (simpliest XOR) combines their properties.
So, if you also maintain a pool of true random numbers, you have all of speed, quality and security.
https://github.com/fsssosei/Pure_PRNG/tree/main/src/prng_algorithms_package Here is the implementation of the following algorithm: Inversive Congruential Generator, LCG64_32_ext, XSM64, Ran64