Try this:
VB Code:
Private Function MakeRandom(intLowest As Integer, intHighest As integer) As Long Ramdomize Din intTemp As Integer If intLowest > intHighest Then intTemp = intLowest intLowest = intHighest intHighest = intTemp End If MakeRandom = CLng((intHighest - intLowest + 1) * Rnd + intLowest) End Function
Or, have a look here for some new functions that were develped for this job
Cheers,
RyanJ





Reply With Quote