rand_max in cpp code example Example: what is max rand in C++ It is guaranteed that std::rand max value is at least 32767