Created
January 13, 2021 15:43
-
-
Save chand1012/65a135c7d036a2f7f1fe6984e006f0e4 to your computer and use it in GitHub Desktop.
Random error generator designed to make really confusing random errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment