what is the range of rand in c++
Random number in C++. Through out this page, we're limited to pseudo-random numbers. We can generate a pseudo-random number in the range from 0.0 to 32,767 using rand() function from <cstdlib> library. The maximum value is library-dependent, but is guaranteed to be at least 32767 on any standard library implementation.