Int((Upperbound - Lowerbound + 1) * Rnd + Lowerbound)

See the FAQ tutorial for random numbers, post #3