The following code outputs a random number each second:
int main () { srand(time(NULL)); // Seeds number generator with execution time. while (true)
rawRand % 101 would give [0-100], inclusive.