I thought you were going to use rand(), MJ.
So what's your goal here? Generate 20 unique random numbers? Please post up your latest code, and a good description of just what you want to do? Also, of course, what has you stumped currently.
I see "eagle eye" Tim has been helpful - well done, Tim.