nifty@lemmy.world to Programmer Humor@programming.dev · 9 months agoMore believable for a Linux OSlemmy.worldimagemessage-square5fedilinkarrow-up15arrow-down10
arrow-up15arrow-down1imageMore believable for a Linux OSlemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 9 months agomessage-square5fedilink
minus-squarerandom9@lemmy.worldlinkfedilinkarrow-up1·9 months agoisn’t randint range inclusive? thus random.randint(0, 6) == 1 has a 1 in 7 chance, not 1 in 6. Most revolvers, assuming this is emulating russian roulette, have 6 cylinders, not 7.
isn’t
randint
range inclusive? thusrandom.randint(0, 6) == 1
has a 1 in 7 chance, not 1 in 6. Most revolvers, assuming this is emulating russian roulette, have 6 cylinders, not 7.