Skip to content

Instantly share code, notes, and snippets.

@chand1012
Created January 13, 2021 15:43
Show Gist options
  • Select an option

  • Save chand1012/65a135c7d036a2f7f1fe6984e006f0e4 to your computer and use it in GitHub Desktop.

Select an option

Save chand1012/65a135c7d036a2f7f1fe6984e006f0e4 to your computer and use it in GitHub Desktop.
Random error generator designed to make really confusing random errors.
# From my friend Alex
import math, random
Errors = [
"Error",
"Log",
"File",
"Creation",
"Pressure",
"High",
"Low",
"Control",
"Successive",
"Missed",
"Perf",
"Out",
"Of",
"Bags",
"Not",
"Opened",
"Heatbar",
"Enagaging",
"Print",
"Length",
"Sealbar",
"Close",
"Start",
"Jammed",
"Closing",
"Jamming",
"Opening",
"Temperature",
"Heat",
"Wire",
"Disabled",
"Drive",
"Motion",
"Homing",
"Timeout",
"Descending",
"Tension",
"Web",
"Break",
"Threading",
"Controller",
"Clamped",
"Ribbon",
"Out",
"Label",
"Not",
"Configured",
"Dry",
"Printhead",
"Feeder"
]
for i in range(1, random.randrange(5,10)):
err = "Error "
for i in range(1, random.randrange(4,12)):
err = err + Errors[random.randrange(0, len(Errors))] + " "
err = err + "Error!"
print(err)
@swiftrabbit-sys
Copy link
Copy Markdown

nice one, kid
hope you become successful in life, the seed of computing is sown into you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment