Reputation: 257
I Have an uIImageView 'image1' that is created every seconds with a timer. I have also another uIImageView 'image2'. What I would like is that appears on the screen randomly every seconds 'image1' or 'image2'instead of only 'image1' and also that 'image1' has more chances to appear on the screen like (80 % more). How can I do this please?
Upvotes: 0
Views: 51
Reputation: 32681
Simply do a random between 5 values instead of 2. For 1 of these 5 values, you will choose image2, and for all 4 other values, you will choose image1
Upvotes: 1