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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now