@[email protected] to Science [email protected]English • 1 month agoif statement == falsei.imgflip.comimagemessage-square39fedilinkarrow-up1246arrow-down118
arrow-up1228arrow-down1imageif statement == falsei.imgflip.com@[email protected] to Science [email protected]English • 1 month agomessage-square39fedilink
minus-square@[email protected]linkfedilinkEnglish5•edit-21 month agoWait, why the the *1000 or mod 2? Won’t that give a 50\50 chance or the same as Math.round(Math.random). No shade, and I may be wrong myself I am very tired
minus-square@[email protected]linkfedilinkEnglish2•1 month 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
Wait, why the the *1000 or mod 2? Won’t that give a 50\50 chance or the same as Math.round(Math.random).
No shade, and I may be wrong myself I am very tired
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