Very newbie obj-c question.
In ViewController I have four UIImages. They are imitating playing cards. User can see only their backside at start. By tapping one of them user will see the front side (animation for this is ready now). My task is to show random front side from four images with defined repetition rate. So I want to set one of the images (prize) will appear eight times less Eight times less than the chance of getting any one of the others, everytime the user will visit this ViewController.
If it’s possible, please show me the piece of code what can generate random but with possibility of setting repetition rate
1 Answer