Random Pixel Plot

Developer(s): Alexander Sloan
Date: 1982
Type: Program
Platform(s): ZX81, TS 1000
Tags: Graphics

Plots a pixel at a random position on the 64 by 44 PLOT grid, over and over, until the top 22 lines of the screen are filled in. Run it in SLOW mode; it is meant to give the computer something to do while you are busy with something else. Stop it with BREAK.

Syntax added a line 20 that UNPLOTs a random pixel each time, so the screen never quite fills and the pattern keeps changing. The download has both versions.

Published in Syntax June 1982 (Random Pixel Plot).

Related Articles

Two line program to randomly plots points.

Image Gallery

Source Code

Program as printed:
  10 PLOT INT (RND*64),INT (RND*44)
  30 GOTO 10

Line added by Syntax ("To make it run a bit longer"):
  20 UNPLOT INT (RND*64),INT (RND*44)

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.