MSDN :

To produce random integers in a given range, use this formula:

Code:
Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
Here, upperbound is the highest number in the range, and lowerbound is the lowest number in the range.

something like that ?