MSDN :
To produce random integers in a given range, use this formula:
Here, upperbound is the highest number in the range, and lowerbound is the lowest number in the range.Code:Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
something like that ?




Reply With Quote