float random
#5

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.
Reply


Messages In This Thread
float random - by RedGun2015 - 29.06.2018, 12:29
Re: float random - by Ultraz - 29.06.2018, 12:49
Re: float random - by RedGun2015 - 29.06.2018, 12:52
Re: float random - by Ultraz - 29.06.2018, 12:55
Re: float random - by Calisthenics - 29.06.2018, 13:06
Re: float random - by RedGun2015 - 29.06.2018, 21:32
Re: float random - by Dayrion - 29.06.2018, 23:18

Forum Jump:


Users browsing this thread: 2 Guest(s)