The result was that I never got 126. Then I changed the code to this:
1 2 3
v1 = rand() % 94 + 33;
and got results in the 33 to 126 range.
so... 33 + (0 to 93) is 33 to 126. My mistake stemmed from not understanding that the rand() is adding the two integers together to make the range. Rookie mistake to be sure.
Also I removed sleep(1); , and moved srand(time(0)); up in scope to main. This results much faster pseudo random results.