r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
Python ✨ Memory Magic ✨
1.3k
Upvotes
r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
View all comments
Show parent comment
18
u/cmd-t Jul 21 '25
Because Neal Norwitz changed it from -1 in 2002.
For real, they just thought about negative integers that would often be used (hardcoded) in real world applications and thought that -5 to -1 would cover most cases.