If I try to do something like:
srand(time(NULL));
for(int i = 0; i < 10000; i++){
float x = rand() % 1000000000000;
output_file << x << endl;
}
I seem to only get numbers for x that are less than 100000. Does rand() have some kind of limit that prohibits it from exceeding this amount? Is there some way around this (specifically for what I'm trying to rand() in the code above)?
EDIT: Just realized the limit is set by RAND_MAX. Still looking for a way around this.