4 ms·
Does the random number generator in C64 basic start with the same seed? I know the QBasic rand function was horrid.
by madengr 9y ago
Does the random number generator in C64 basic start with the same seed? I know the QBasic rand function was horrid.
- kowdermeister 9y agoYes, I remember when they demonstrated this to us in elementary school with C16-s. It's clock based IIRC :)
- eggy 9y agoI remember doing it on my Vic-20, and I had done ASCII graphics on my Commodore PET in 1978! I had a thermal printer for my Vic-20 the width of receipt paper. I wrote a program from an astronomy calculation book to show where the 4 major moons of Jupiter were on an almost line due to their orbital planes being parallel to our line of sight here on Earth. So much easier to just get going with stuff then from bootup. It's why I like the interpreter that comes with J (jsoftware.com). Rosetta almost-one-liner for the Sierpinski triangle in J: load 'viewmat' 'rgb'viewmat--. |. (~:_1&|.)^:(<@#) (2^8){.1
- BeetleB 9y agoIn QBasic you had to put a RANDOMIZE TIMER statement to get a different seed whenever you run.