BCX Console Demonstration Program s95.bas
|
'*****************************************************************************
' Demonstrates the pseudo-random number generator functions that BCX supports
'*****************************************************************************
'
' RANDOMIZE takes any argument
'
' TIMER is a BCX function that returns the number of seconds since
' Windows started.
'
' RND takes no argument and always returns a floating point number
' in the range of 0 and 1
'*****************************************************************************
DIM i
RANDOMIZE(TIMER)
FOR i = 1 TO 20
PRINT RND
NEXT