4 ms·
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 c
by richardfey 1y 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
- anta40 1y agoWhat about freebasic? I know it's a compiler, though.
- ethan_smith 1y agoTry `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.