# Button to randomise prompts in my app

**URL:** <https://community.glideapps.com/t/button-to-randomise-prompts-in-my-app/59710>\
**Category:** Ask for Help\
**Created:** [March 26, 2023, 5:19pm UTC](https://community.glideapps.com/t/button-to-randomise-prompts-in-my-app/59710 "2023-03-26T17:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesbrooks](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jamesbrooks/32/56238_2.png) [@jamesbrooks](https://community.glideapps.com/u/jamesbrooks)\
**Post date:** [March 26, 2023, 5:19pm UTC](https://community.glideapps.com/t/button-to-randomise-prompts-in-my-app/59710/1 "2023-03-26T17:19:26Z")

</div>

![Screenshot 2023-03-26 at 18.17.07](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/c/4cc08d1eab9b0d04677f8a69c14a5645f1a0f7f5.jpeg)

Hey guys!

I am working on an app right now which gives a prompt for ideation. I have a table with a list of prompts, one per row, and I’d like this “Shuffle” button to be able to randomly shuffle to another prompt in that table.

Once happy the user fills the ideas and that gets saved as a row in another table with the prompt and the ideas, one per column.

Bonus help - I’d also like the user to be able to skip the provided prompt and type their own in!

Super appreciate any help here.

Sorry for being n00b!

Natter soon,

James

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 27, 2023, 1:13am UTC](https://community.glideapps.com/t/button-to-randomise-prompts-in-my-app/59710/2 "2023-03-27T01:13:01Z")

</div>

> [@Need Help getting random items](https://community.glideapps.com/t/need-help-getting-random-items/42750/11):
>
> Sorry for the delay. Finally got some free time to work on this. First of all, Robert had reported to Glide that there is in fact an issue with the Shuffle action, so I’m thinking that will be fixed sometime this week. However, I don’t think that would be a great way to ensure that each of the questions are unique to each other. Because of that, I threw together a quick sample app with javascript to randomize the questions while keeping them unique, so there shouldn’t ever be duplicates when…

Please check this concept from @Jeff_Hager .

Regarding the ability to “skip”, I think you can just add a user-specific column, point a text entry there and when that column is not empty, you use that as the prompt instead of the “random” prompt.
