seed your random number generator:
Code:
srand(time(NULL));   // do this once per run of the program

then you can do this:
Originally posted by Lithorien
Code:
rand()%10 + 1


vvv And here are some books vvv