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

Re: Interesting one-line BASIC program



vladitx wrote:
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.

Yes, I usually do, but thought it looked better typed
out on multiple lines.  ;-)  Besides, these days it's
much more likely it will be run on a "30MHz" emulator!

-michael

NadaPong: Network game demo for Apple II computers!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."