I didnt notice this about random :(

With the rand() function rand keeps going higher with the number ex: 4 then 15 then 27 then 35 then 41 then 61 then 85 then 99 then 1 < until it reaches the number its max is any way to make that obsolete or is it just the way rand works

even if u first have max as 200 and min as 1 and it comesx out with 56 if u do 100 and min 1 it will be higher

Code:

`#include<iostream>`

#include<cmath>

#include<ctime>

using namespace std;

int main()

{

int random;

int max;

int min;

while(random)

{

cout << "Enter a max: ";

cin >> max;

cout << "Enter a min: ";

cin >> min;

srand(time(NULL));

random =(rand() % max) + min;

cout <<"Hey the numbereno is " << random << "\n";

}

}

also im still looking for a sure way that max will always be the highst number reachable and min will always be the lowest cause for some reason if 2000 is max and min then the answer is liek 3759