618
know the features of your language
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
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