# A randomiser button

**URL:** <https://community.glideapps.com/t/a-randomiser-button/75425>\
**Category:** Ask for Help\
**Created:** [August 5, 2024, 7:45am UTC](https://community.glideapps.com/t/a-randomiser-button/75425 "2024-08-05T07:45:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Future\_Creatives](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/future_creatives/32/78332_2.png) [@Future\_Creatives](https://community.glideapps.com/u/Future_Creatives)\
**Post date:** [August 5, 2024, 7:45am UTC](https://community.glideapps.com/t/a-randomiser-button/75425/1 "2024-08-05T07:45:36Z")

</div>

Hi all  
I’m new to the community.  
Is it possible to create a button that when it is clicked it pulls a random phrase/quote from a datasheet?

---

<div class="post-metadata">

**Author:** ![Dharmil](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dharmil/32/84583_2.png) [@Dharmil](https://community.glideapps.com/u/Dharmil)\
**Post date:** [August 5, 2024, 8:16am UTC](https://community.glideapps.com/t/a-randomiser-button/75425/2 "2024-08-05T08:16:53Z")

</div>

Yes, you need to 1st create a table containing random phrase/quote. Add a button component to your app and create a user-specific to store random number. Set the button action to generate a random number and it will use to pick a phrase from table.

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [August 5, 2024, 11:51am UTC](https://community.glideapps.com/t/a-randomiser-button/75425/3 "2024-08-05T11:51:08Z")

</div>

One way to do it is to have a table full of quotes/ phrases. Then on a one row table add a single value random column and target the quotes column in the quotes table.

Every time the app loads or refreshes the single value random column will choose a quote at random.

---

<div class="post-metadata">

**Author:** ![Future\_Creatives](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/future_creatives/32/78332_2.png) [@Future\_Creatives](https://community.glideapps.com/u/Future_Creatives)\
**Post date:** [August 6, 2024, 10:18am UTC](https://community.glideapps.com/t/a-randomiser-button/75425/4 "2024-08-06T10:18:19Z")

</div>

Thank you! Great that it’s possible however as a newb. I have no idea how to do it. Sharp learning curve here I come!

---

<div class="post-metadata">

**Author:** ![mathew1812](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mathew1812/32/4365_2.png) [@mathew1812](https://community.glideapps.com/u/mathew1812)\
**Post date:** [February 18, 2025, 3:55am UTC](https://community.glideapps.com/t/a-randomiser-button/75425/5 "2025-02-18T03:55:12Z")

</div>

Did you figure out how to do it? I have a similar use case.

---

<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:** [February 18, 2025, 11:26pm UTC](https://community.glideapps.com/t/a-randomiser-button/75425/6 "2025-02-18T23:26:10Z")

</div>

> [@A randomiser button](https://community.glideapps.com/t/a-randomiser-button/75425/3):
>
> One way to do it is to have a table full of quotes/ phrases. Then on a one row table add a single value random column and target the quotes column in the quotes table. Every time the app loads or refreshes the single value random column will choose a quote at random.

I believe this should work.
