How to set random images to ImageView's?

前端 未结 3 1430
天涯浪人
天涯浪人 2021-01-06 14:46

i am using 9 image view\'s i want set images to imageview randomly , when I click on refresh button, but I tried like this it\'s working for random allocation of images but

3条回答
  •  渐次进展
    2021-01-06 15:09

    You might want to refer to this post. It shows a method to generate random numbers without duplicates Creating random numbers with no duplicates

提交回复
热议问题