I'm trying to write a simple program that has the function rand() to assign a number between 1 and 100 to int x. Right now, the only way I can get this to happen, is to have the program to check x after it is set, and if it is above 100, "try again". Can I tell rand() to simply "not return above 100". It would be a 'much' more efficent technique