Live data from Hacker News

10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)

10print.org

21–30 of 62 posts

Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)

#25

Love it! Brings up so much nostalgia from the days of programming on my old TRS-80. But is it really a maze? Once you start, you don't seem to get much choice of path...

Of course not, there is no logic behind it, save for printing "walls" that line up with each other.

It's a (neat) graphic trick.

Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)

#27

Lacks randomize()

I think Commodore BASIC had a more complex way of seeding the random timer: https://www.c64-wiki.com/wiki/RND

    POKE 56328,0    : REM real-time clock activate with 1/10s -> clock runs ($DC08)
    PRINT RND(0)    : REM Random number addicted by timer and real-time clock
Post reply on HN