29.06.2018, 13:06
Why do you bother with floating-point numbers? Experience can be an integer and do your coding much easier.
Anyway, based on your example you can still generate a random number as integer (like the way you showed, it is correct) and then convert to float.
Anyway, based on your example you can still generate a random number as integer (like the way you showed, it is correct) and then convert to float.