We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How can i use random to get x10 numbers?
Example:
I just need 10,20,30,40,50 not 15,13, etc.
Thanks
You can use int() to make then decimals dissappear, and the multiply by 10.
int my_number = int(random(1,9)) * 10;
Answers
You can use int() to make then decimals dissappear, and the multiply by 10.
int my_number = int(random(1,9)) * 10;