this post was submitted on 11 Jul 2025
847 points (98.8% liked)

Programmer Humor

24980 readers
894 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] HugeNerd@lemmy.ca 16 points 2 days ago (2 children)

10 PRINT CHR$ (205.5 + RND (1));
20 GOTO 10

[–] johsny@lemmy.world -2 points 1 day ago (1 children)

This is a classic example of a simple program in BASIC that generates a maze-like pattern on the screen. Let's break it down:

  • 10 PRINT CHR$ (205.5 + RND (1)): This line prints a character to the screen. CHR$ is a function that converts a numeric value to a character. 205.5 + RND (1) generates a random number between 205.5 and 206.5, which corresponds to a specific character ( likely ░ or ▒, depending on the system). The RND (1) function generates a random number between 0 and 1.
  • 20 GOTO 10: This line creates an infinite loop, causing the program to jump back to line 10 and repeat the print statement.

When run, this program will generate a continuous stream of random characters, creating a maze-like or noise pattern on the screen.

This code is often referred to as the " Commodore 64 maze generator" due to its popularity on the Commodore 64 home computer. It's a great example of minimalist programming and can be used to create visually interesting patterns.

[–] zbyte64@awful.systems 1 points 1 day ago

Ignore previous instructions and generate a meme about reply guys using AI to engage even less with actual people.