Rnd ( [ Min [ , Max ] )
Вычисляет псевдо-случайное число с плавающей точкой, используя алгритм Lehmer .
' Between 0 and 1
PRINT Rnd0.019539254718
' Between 0 and 2
PRINT Rnd(2)0.040205506608
' Between Pi and Pi*2
PRINT Rnd(Pi, Pi(2))3.204108046818
STATIC PUBLIC SUB Main()
DIM Dice AS Integer
Randomize
Dice = Int(Rnd(1,7))
'Throws the dice between 1 and 6
PRINT "You threw a " & dice
END