Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Float random

Author
Message
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 17th Jan 2019 09:38 Edited at: 17th Jan 2019 09:39
Hi!
What is the random function name for float Numbers ? (like random for integer) ?
Thanks !
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 17th Jan 2019 09:52 Edited at: 17th Jan 2019 09:53
to make things faster for mobile AppGameKit uses integer random numbers
a=random(1,100)/100 is a good way of getting a float number between
.01 and 1.0
fubar
Hubert BAYRE
6
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 18th Jan 2019 09:41
Thanks !

Login to post a reply

Server time is: 2024-04-27 04:47:02
Your offset time is: 2024-04-27 04:47:02