What Does 10 PRINT Mean? The Iconic Commodore 64 One-Liner Explained

Understanding the 10 PRINT Program: A Classic One-Liner

The phrase “10 PRINT” refers to a famous one-line program written in BASIC for the Commodore 64 home computer. The full line is: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10. This simple command generates an endless, random maze-like pattern of diagonal lines across the screen. Despite its simplicity, the 10 PRINT program has become an iconic piece of software history, celebrated for its elegance, efficiency, and the mesmerizing visual output it produces.

Origins and Historical Context

The 10 PRINT program first appeared in the early 1980s, during the golden age of home computing. The Commodore 64, released in 1982, was one of the most popular home computers of its time, and its built-in BASIC interpreter allowed users to type in short programs. The 10 PRINT one-liner was a common example in magazines and books, demonstrating how a few lines of code could create complex, generative art. It became a rite of passage for many young programmers.

How the Code Works

Let’s break down the program line by line:

  • 10 – This is the line number, a feature of BASIC that allows for easy editing and branching.
  • PRINT – The command to output text or characters to the screen.
  • CHR$(205.5+RND(1)) – This generates a random character. The Commodore 64’s character set includes two diagonal line characters (CHR$(205) and CHR$(206)). By adding a random number between 0 and 1 (RND(1)) to 205.5, the result is either 205 or 206, producing a forward or backward slash.
  • ; – Semicolon suppresses the newline, so characters are printed side by side across the screen.
  • : GOTO 10 – Colon separates two statements on one line. GOTO 10 sends execution back to line 10, creating an infinite loop.

The result is an endless stream of random slashes that gradually fill the screen with a maze-like pattern. The pattern never repeats exactly, making each run unique.

Cultural and Educational Significance

The 10 PRINT program is more than just a nostalgic curiosity. It has been studied in academic contexts as an example of generative art, procedural generation, and the aesthetics of early computing. In 2012, a group of media scholars published a book titled 10 PRINT CHR$(205.5+RND(1)); : GOTO 10, which explores the program’s cultural impact, its relationship to randomness, and its place in the history of software.

Influence on Modern Coding

Today, the spirit of 10 PRINT lives on in creative coding platforms like Processing, p5.js, and Scratch. Many modern generative art projects use similar random-walk algorithms to create patterns. The program also serves as an excellent teaching tool for beginners, illustrating concepts like loops, random numbers, and character output in a visually engaging way.

Running 10 PRINT Today

You can still experience the 10 PRINT program on a real Commodore 64, but emulators make it accessible to everyone. Several online emulators allow you to type in the code and watch the pattern unfold. Additionally, you can recreate the effect in modern languages like Python or JavaScript. For example:

import random
import time

while True:
    print('/' if random.random() < 0.5 else '\', end='')
    time.sleep(0.01)

This Python version mimics the same behavior, printing forward and backslashes randomly in an infinite loop.

Common Misconceptions

Some people mistakenly believe that “10 PRINT” refers to a specific printing technique or a type of document. In reality, it is purely a software artifact. The phrase “ten printed” is often a misspelling or mishearing of the program’s name. Understanding the correct context helps avoid confusion when discussing retro computing or generative art.

Why 10 PRINT Matters in 2026

Even in 2026, the 10 PRINT program remains relevant. It is a perfect example of how minimal code can produce complex, emergent behavior. As interest in retro computing and creative coding continues to grow, the program serves as a bridge between the past and present, inspiring new generations of programmers to experiment with code as an artistic medium. Whether you are a seasoned developer or a curious beginner, exploring 10 PRINT offers a glimpse into the beauty of simplicity in software.