RandomNumber

Generate random number between Lower and upper numbers provided

Function RandomNumber(LowerB, UpperB)
 If CInt(UpperB) = 0 Then UpperB = 999999
 If CInt(LowerB) = 0 Then LowerB = 100000
 Randomize(Second(Now) + 60)
 RandomNumber   = Int((UpperB - LowerB + 1) * Rnd + LowerB)
End Function

Parameters

LowerB, UpperB

Views 127 Downloads 54

Perm link


ANmarAmdeen
280
Math Classic ASP
Revisions

v1.0