I would like to know how to make a button that if its pressed, the value of a dropdown will randomly show a different value.

I have 2 dropdowns and both of them have different number of items.

I would like to know how to make a button that if its pressed, the value of a dropdown will randomly show a different value.

I have 2 dropdowns and both of them have different number of items.

Easiest way to find the answer to these things is to look at the documentation.

For example, you can find out you can set the selection of a dropdown by modifying this property: Class Dropdown | Unity UI | 1.0.0

Thus all you really need to do is make a random number between 0 and the amount of values minus 1 and use that.

1 Like

Thank you so much bro… I was able to get the answer