--- title: "Random Squares" type: "article" slug: "random-squares" url: "http://localhost/article/random-squares/" markdown_url: "http://localhost/article/random-squares.md" published_at: "2026-11-15T18:39:50+00:00" modified_at: "2026-11-15T18:39:50+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Summary This short ZX81 program write-up presents a BASIC program that fills the screen with randomly placed, overlapping squares drawn from a string array of graphics characters. It notes that line 30 lets the user stop the program with the A key without leaving incomplete squares, and that only a limited number of squares fit…" post_tag: - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "J. C. Newton" slug: "j-c-newton" taxonomy: "indiv" url: "http://localhost/indiv/j-c-newton/" publication_r: id: 10240 title: "Sinc-Link" type: "periodical" url: "http://localhost/periodical/sinc-link/" authors: "J. C. Newton" volume: "5" issue: "4" issues_articles: - id: 39340 title: "Sinc-Link v5 n4" type: "issue" url: "http://localhost/issue/sinc-link-vol-05-no-4/" pages: "12" pubdate: "July/August 1987" archive_link: false --- # Random Squares ### Summary This short ZX81 program write-up presents a BASIC program that fills the screen with randomly placed, overlapping squares drawn from a string array of graphics characters. It notes that line 30 lets the user stop the program with the A key without leaving incomplete squares, and that only a limited number of squares fit in 1K of RAM. The piece gives the listing, notes on entering the graphics characters, and a picture of the resulting screen. Reprinted from [SYNC](http://localhost/periodical/sync-magazine/), by [J. C. Newton](http://localhost/indiv/j-c-newton/).