Answer the question
In order to leave comments, you need to log in
Is there a faster random number generator than the standard rand()?
I need a faster option than the standard rand function.
I think there must be something faster, whether in C or C++.
Answer the question
In order to leave comments, you need to log in
I remembered:
But seriously, it depends on the task: you need to get real random numbers, or just create a feeling of randomness in the user.
The fastest will be the non-random random, which simply returns a number and a predetermined sequence.
The slowest is a real random based on some kind of physical effect. (for example, throwing a die)
https://habr.com/ru/post/499490/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question