How to randomize a button when selecting?

I am working on a project where a person is selecting a button and it has three options it can be. One choice is the persons choice by default but the other two would the other persons selection and a blank selection. I want to be able to have the button rotate when pressed and land on 1 of 3 choices. How can I make this happen? Thanks in advanced!

If by rotate, you mean alternate between the 3 text options, I can offer some insight…

Script with a public method put on the button.
In the button’s OnClick , add an event (this is the little ‘+’ sign).
Drag the button gameobject to this event we’ve just made.
use the drop down menu to choose the public method that was created in the script.

Inside the script, Get a random value from 0 - 2 (ie: 0, 1, 2 = 3 values).
Check that the random choice is not the one already there, and then set the text :slight_smile:

Check out tutorials for creating buttons or random numbers. Useful for many applications. :slight_smile: