How to choose a random number in objective c
How to choose a random number from 4 numbers in objective c and assign it
to an int?
int monsterPos = (arc4random() %(40,120,200,280));
i dont think thats correct but i need x to be assigned a number randomly
from those 4
No comments:
Post a Comment