I have 1 TextView that provides me two randomly generated numbers 3 + 4 for example, and there are 4 buttons, but a random button has right answer (7) and other 3 – randomly generated numbers. I have no idea how to set a right answer to a random button. What should i use? tags?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
I would suggest to use the Random class here.
The best way would be to do this.
Note the task of finding the views by id or using binding is your task.