Generate Random numbers

  • Thread starter Thread starter Fresh Access user
  • Start date Start date
F

Fresh Access user

Do I have any function similar to randbetween() function of Excel in MS
Access?
 
Fresh Access user said:
Do I have any function similar to randbetween() function of Excel in MS
Access?

You can roll your own using the Rnd function:

Function randbetween(lower As Integer, upper As Integer) As Integer
Randomize
randbetween = Int((upper - lower + 1) * Rnd + lower)
End Function
 
Back
Top