Generate Random numbers

F

Fresh Access user

Do I have any function similar to randbetween() function of Excel in MS
Access?
 
S

Stuart McCall

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
 
Top