I would like to know if is possible to do the following:
EXAMPLE: round(random 8) * 10
The random is between 0 and 8.
We use this to put random coins on AI.
But when a player checks and AI's wallet and it returns 0 coins (so random = 0), the players money is not being saved anymore and he/she needs to relog to get the correct amount again.
So i would like the Random to always return at least 1.
Hope it's clear and i hope you guys can help me :)
Question
Proximus
I would like to know if is possible to do the following:
EXAMPLE: round(random 8) * 10
The random is between 0 and 8.
We use this to put random coins on AI.
But when a player checks and AI's wallet and it returns 0 coins (so random = 0), the players money is not being saved anymore and he/she needs to relog to get the correct amount again.
So i would like the Random to always return at least 1.
Hope it's clear and i hope you guys can help me :)
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now