top | item 44898193 (no title) richardfey | 6 months ago I tried this on all the basic interpreters available on Ubuntu (yabasic, sdlbasic, basic256 and bwbasic), couldn't get it to work on any of them.In a couple cases the only remaining issue was the lack of a RND() function definition discuss order hn newest ethan_smith|6 months ago Try `10 PRINT CHR$(205.5+RND(0)1); : GOTO 10` in yabasic or `10 PRINT CHR$(47+INT(RND(1)2)*45); : GOTO 10` in most modern BASIC dialects, which explicitly chooses between '/' (47) and '\' (92) characters. anta40|6 months ago What about freebasic? I know it's a compiler, though.
ethan_smith|6 months ago Try `10 PRINT CHR$(205.5+RND(0)1); : GOTO 10` in yabasic or `10 PRINT CHR$(47+INT(RND(1)2)*45); : GOTO 10` in most modern BASIC dialects, which explicitly chooses between '/' (47) and '\' (92) characters.
ethan_smith|6 months ago
anta40|6 months ago