Rnd Sub Rnd($maxValue as Integer) As Integer Returns a random number between 0 and $maxValue. Example: Dim $i$i = Rnd(1000)' returns eg. $i = 673