10 REM PC-BASIC test 
20 REM RANDOMIZE statement
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
35 ON ERROR GOTO 1000
40 A%=1: RANDOMIZE A%: PRINT#1, RND
50 A%=-2: RANDOMIZE A%: PRINT#1, RND
60 A!=1: RANDOMIZE A!: PRINT#1, RND
70 A#=1: RANDOMIZE A#: PRINT#1, RND
80 A$="1": RANDOMIZE A$: PRINT#1, RND
90 A!=255: RANDOMIZE A!: PRINT#1, RND
100 A!=-32768: RANDOMIZE A!: PRINT#1, RND
110 A!=65536: RANDOMIZE A!: PRINT#1, RND
120 RANDOMIZE: PRINT#1, END
130 RANDOMIZE: PRINT#1, END
140 RANDOMIZE: PRINT#1, END
150 RANDOMIZE: PRINT#1, END
160 END
1000 PRINT#1, "error:", ERR, ERL
1010 RESUME NEXT

