I am using C to generate a integer random number in range [min max]. I am using
int random_int(int min, int max)
{
return min + rand() % (max - min);
}
But I think above code is for range : [min, max), it is not for [min max]. Could you show to me a code to do my work. Best thanks