C++ version of C# Random.Next(int minValue, int maxValue);


int Random(int min, int max)
{
return (int)((double)rand() / ((double)RAND_MAX + 1.0) * (double)(max - min) + (double)min);
}