Simple functions to generate random numbers
All functions are in the namespacce rnd
generate a random double between 0 and 1 on a uniform distribution
generate a uniform random number in the range specified by (a,b) inclusive. You can provide a random generator as the third argument.
select a random iterator from a container (array, vector, list, ...) or user defined ones that implement std::advance() and std::distance() You can provide a random generator as the third argument.
generates a mt19937 generator from random_device and returns it for other functions to use.