Originally posted by DaoK
rnd random a number between 0 and 1 so if you want to have a random number between 7 and 10 you will need to do :

rnd * 3 + 7

That a little tip
Here's a full function:
VB Code:
  1. Public Function RandInt(lowerbound As Integer, upperbound As Integer)
  2.     RandInt = Int((upperbound - lowerbound + 1) * Rnd + lowerbound
  3. End Function