Pages for logged out editors learn more
#include <cstdlib> ... int rangedRand(int min, int max) { return rand() % (max - min + 1) + min; }