Crossposted from https://lemmy.world/post/49163864

CommitStrip | website

Transcript

7 panel comic

1: [2 guys, both in fur lined coats, one wearing a fur-lined hat, the other with crazy hair, sit in circular booth in a rundown bar. 2 empty shot glasses and a bottle are visible on the table.]

Hat: Stop it, you’re crazy! This isn’t you talking, it’s the vodka!

Hair: Leave it…

2: [The two men are sitting across from a third man in a similar fur-line coat and hat, but glasses and a beard. A laptop sits in front of the bearded man.]

Beard: It’s not a game for cowards…

3: [Hair pulls the laptop towards him. Hat looks worried]

Hair: Come on, gimme that and let’s get it over with!

4: [Hair has a crazy and excited look on his face]

Hair: Each one on his own prod server?

Beard: Each one on his own prod server.

5: [Close up of Hats finger clicking the touch pad]

6: [Close up of the sweat dripping down Hats face]

7: [A terminal is open on the laptop screen] Laptop reads: root@server:~# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “Lucky boy”;

  • nitroemdash@lemmy.wtf
    link
    fedilink
    arrow-up
    7
    ·
    8 days ago

    As $RANDOM returns 0 to 32767, chance of the command running is not 1 to 5, but 1 to 5.00018311665.

    • YellowTraveller@lemmy.zip
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      edit-2
      8 days ago

      Well no, because they’re doing a modulo 6 (% 6) so it will be between 0 and 5. Just run echo $(($RANDOM % 6)) and see what it gives you