[Solved] How to choose between two pages randomly

Basically, I have a button, I want it to choose between two different pages and choose one to navigate to. How do I do that?

1 Like

Iā€™m not sure if I understand you but if you want to user to select which screen to go to then you can do that with an Alert component and then check what the user selected.
This is the Alert when the user clicks on Button1

And this is the code of Button1

Hope this helps.

1 Like

No, what I want is a button that picks a random page (out of 2) which it will then navigate to.
[button] - Chooses 1 - Navigate to page Home - Chooses 2 - Navigate to a separate screen.