random numbers:

Can someone give me the best and easy codes to create random numbers?
Seriously? It's not necessary to read up on all the engines and all the distributions.
If I had to pick just one engine I would go for std::mt19937 (Mersenne Twister).
And if I had to pick just one distribution I would go for std::uniform_int_distribution which allows you generate random numbers within a range with equal probability.
Topic archived. No new replies allowed.