rand()

Is there any way to make rand() generate numbers that are bigger than 32768. Or maybe another function that does that?
Sure, take a look at this -> http://www.cplusplus.com/forum/lounge/23263/page7.html#msg126360

I use a custom random number generator that gives 'random' numbers from 0 to 31 and I extend its range without modifying the generator itself. You can apply the same logic to extend std::rand's range.
Topic archived. No new replies allowed.