How do you generate a random number when a button is clicked, and depending on that number, different actions take place.
I probably only need a random number from 1-10.
-(IBACTION)buttonClicked{
"generate the random number"
if(number == 1){
something happens
}
else if(number == 2){
somethine else happens
}
etc
}