I think the BASIC examples should use more spaces to make reading easier. E.g.
10 SCREEN$80
20 FORI=1TO20:FRAMERND(1)*320,RND(1)*200,RND(1)*320,RND(1)*200,RND(1)*128:NEXT
30 GOTO20
could be:
10 SCREEN $80
20 FOR I=1 TO 20:FRAME RND(1)*320,RND(1)*240,RND(1)*320,RND(1)*240,RND(1)*128:NEXT
30 GOTO 20
I also changed 200 to 240 since now larger effective screen.