@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 1 year agoknow the features of your languagelemmy.worldimagemessage-square145fedilinkarrow-up1646arrow-down124
arrow-up1622arrow-down1imageknow the features of your languagelemmy.world@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 1 year agomessage-square145fedilink
minus-squareunalivejoylinkfedilinkEnglish4•edit-21 year agoThis must be a custom random function, because it’s standard for random to return a float between 0-1 exclusive. Maybe you meant to multiply by 100 instead of modulo.
minus-square@drolex@sopuli.xyzlinkfedilink10•1 year agoI think for once I didn’t fuck up. https://cplusplus.com/reference/cstdlib/rand/
minus-square@Snazz@lemmy.worldlinkfedilink5•1 year agoYou guys are talking about two different things. Random integer vs random float
This must be a custom random function, because it’s standard for random to return a float between 0-1 exclusive. Maybe you meant to multiply by 100 instead of modulo.
I think for once I didn’t fuck up.
https://cplusplus.com/reference/cstdlib/rand/
You guys are talking about two different things. Random integer vs random float