@jroid8 to Programmer [email protected] • 10 months agoknow the features of your languageimagemessage-square145arrow-up1646arrow-down123
arrow-up1623arrow-down1imageknow the features of your language@jroid8 to Programmer [email protected] • 10 months agomessage-square145
minus-squareunalivejoylinkfedilinkEnglish4•edit-210 months 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@[email protected]linkfedilink10•10 months agoI think for once I didn’t fuck up. https://cplusplus.com/reference/cstdlib/rand/
minus-square@Snazzlink5•10 months 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