Can you make the RND function so it returns a full breadth of numbers?

It keeps generating above the median of Int( Rnd * ?? )

Try this code..

Code: Select all

screen 19

dim as ulongint n

dim as ulongint low = 0

dim as ulongint hi = 0

for a as longint = 1 to 10000000

n = int( rnd*(2^64) )

if n >= (2^32) then hi+=1

if n <= (2^32) then low+=1

next

print "10,000,000 loops of int( rnd * (2^64) )"

print " Random > 2^32 = " ; hi

print " Random < 2^32 = " ; low

sleep

end

Out of 10,000,000 loops , of Int( Rnd * (2^64) ) , It doesn't get any numbers below (2^32) They are all higher than (2^32)