nifty@lemmy.world to Programmer Humor@programming.dev · 1 year agoMore believable for a Linux OSlemmy.worldimagemessage-square5fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1imageMore believable for a Linux OSlemmy.worldnifty@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square5fedilink
minus-squarerandom9@lemmy.worldlinkfedilinkarrow-up1·1 year 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.