I am looking to create a random number between two ranges that is a multiple of 10.
For example, if I passed a function to parameters 0, 100
, it will return one of these numbers:
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
but nothing like that 63
or 55
.
And yes, I know that this defeats the point of true “randomness," but I just need a quick and easy way to get a number that is a multiple of 10 between two ranges.
Thank.:)
source
share