I can choose a random number for my items in my game, but is it possible to choose a random number between 2 numbers?
so instead
let number = (arc4random_uniform(100))
I would like something like this:
let number = (arc4random_uniform(10...20))
or something like that? Now, if I get a weapon, it could be anything on my list. Thus, I could make sure that only the first few had a fall for a particular monster, or at a higher level they would drop better weapons, not lower levels.
source share