I am trying to write a function that takes in a min and a max and returns a random double between them. I was trying to use Boost::variate_generator to get a random number between two doubles, but the issue is that I can't change the distribution on it, so I would have to make a new seed each call. It defeats the purpose of a Pseudo Random Number Generator if I make a new seed every time I call it.
Is there a way to get something like this below, Boost isn't necessary, it just seems to give good results.
double getRandom(double min, double max);
{
return randomNumberBetweenMinAndMax;
}