Mazes Made with Random Characters

The mazes shown here are created with a very simple program: just take a very small number of characters randomly and get a surprising variety of designs. In the early days of computer art on personal computers, the program was implemented in BASIC for the Commodore 64 with the following simple statement, leading to considerations in randomness and regularity in simple programs:
10 PRINT CHR$(205.5+RND(1)); : GOTO 10


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


[1] G. Dayal, "BASIC: A Single Line of Code Sends Readers into a Labyrinth," Slate, Nov. 30, 2012. www.slate.com/articles/technology/books/2012/11/computer_programming_ 10_print _chr _ 205_ 5_rnd _ 1_goto _ 10_from _mit _press _reviewed.single.html.
[2] N. Montfort, P. Baudoin, J. Bell, I. Bogost, J. Douglass, M. C. Marino, M. Mateas, C. Reas, M. Sample, and N. Vawter, 10 PRINT CHR$(205.5+RND(1)); : GOTO 10, Cambridge, MA: The MIT Press, 2012. 10print.org.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+