17-07-2008, 07:29 PM
I'm unfamiliar with all the math functions in vb, but I'm good with theory.
I think it should be something like
function RandRange(ByVal Low As Long,ByVal High As Long) As Long
Rand = int((High - Low + 1) * "random number") + Low
end function
somethin like that. look up the random function and replace "random number" with it.
I think it should be something like
function RandRange(ByVal Low As Long,ByVal High As Long) As Long
Rand = int((High - Low + 1) * "random number") + Low
end function
somethin like that. look up the random function and replace "random number" with it.