10 REM PC-BASIC test 
20 REM Random-number generator
30 OPEN "output" FOR OUTPUT AS 1
40 PRINT#1, RND(0)
50 FOR I=0 TO 20
60   PRINT#1, RND(I)
70 NEXT
80 FOR I%=0 TO 20
90   PRINT#1, RND(I%)
100 NEXT
150 FOR I=0 TO 1 STEP .1
160   PRINT#1, RND(I)
170 NEXT
180 PRINT#1, RND(0.12345678#)
190 PRINT#1, RND(0.12345679#)
200 CLOSE

