I need to generate random numbers within a specified interval, [max;min].
Also, the random numbers should be uniformly distributed over the interval, not located to
If you are able to, use Boost. I have had good luck with their random library.
uniform_int should do what you want.
uniform_int