java - Randomly perform a click on a button in android -


I am creating a game in the form of an Android app in which the user can click on the button to change its color . .

One thing that I am trying to implement is to make some initial moves when the application starts randomly clicking on different buttons, however, I have a real hard time Trying to know how to select some buttons randomly and do its PerformClick () method. Anyone have any ideas?

Thanks Billy

Put your buttons in the array, the genre random number, so that Number is a button-array index.

Comments