Answer the question
In order to leave comments, you need to log in
What algorithm to use to generate numbers?
Good afternoon!
What is the best algorithm to use to generate random cells in a given range and how to use it?
Answer the question
In order to leave comments, you need to log in
For example .
And if you need a simple generator, you can use something like:
double Rand(double fMin, double fMax)
{
double f = (double)rand() / RAND_MAX;
return fMin + f * (fMax - fMin);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question