tatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 9 months agoif statement == falsei.imgflip.comexternal-linkmessage-square39linkfedilinkarrow-up1253arrow-down118
arrow-up1235arrow-down1external-linkif statement == falsei.imgflip.comtatterdemalion@programming.dev to Science Memes@mander.xyzEnglish · 9 months agomessage-square39linkfedilink
minus-squaremexicancartel@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up2·9 months agoProbably to make the fractional random value between 0 and 1 to become an integer so that you can divisibility check for even with mod 2
Probably to make the fractional random value between 0 and 1 to become an integer so that you can divisibility check for even with mod 2