Function RndBetween(min As Long, max As Long) As Long
Randomize
RndBetween = Int((max - min + 1) * Rnd + min)
End Function
Function RndBetween(min As Long, max As Long) As Long
RndBetween = WorksheetFunction.RandBetween(min, max)
End Function