[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting one-line BASIC program



On Mar 31, 12:19 pm, "Michael J. Mahon" <mjma...@aol.com> wrote:

> 100 HGR2 : HCOLOR= 3
> 110 HPLOT 279*RND(1),191*RND(1)
> 120 GOTO 110
>
> is one of my favorite little programs.  It happily
> paints the hi-res screen with dots until the screen
> stops changing--demonstrating the short period of
> the Applesoft random number generator.

It was a classic example back then.
You'd want to put "GOTO" on the same line as "HPLOT" to speed a little
bit the sluggish interpretation.