How to use random

How can i use random to get x10 numbers?

Example:

I just need 10,20,30,40,50 not 15,13, etc.

Thanks

Answers

  • edited March 2018 Answer ✓

    You can use int() to make then decimals dissappear, and the multiply by 10.

    int my_number = int(random(1,9)) * 10;

Sign In or Register to comment.