# Show random sentences to user, Shuffle? Roll dice? how to?

**URL:** <https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982>\
**Category:** Ask for Help\
**Created:** [February 15, 2023, 11:44am UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982 "2023-02-15T11:44:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohad](https://avatars.discourse-cdn.com/v4/letter/o/f04885/32.png) [@ohad](https://community.glideapps.com/u/ohad)\
**Post date:** [February 15, 2023, 11:44am UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/1 "2023-02-15T11:44:26Z")

</div>

Hi,  
I would like to show my users different sentence (sort of greeting message) for specific scenario.  
How can I shuffle or show the sentences by random?

I created a list in sheets of the sentences:  
sentence 1  
sentence 2  
sentence 3 and so on…

I would like that the system “will choose” different sentence if “something” equals ‘1’.

What is right approach for it?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 15, 2023, 11:57am UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/2 "2023-02-15T11:57:56Z")

</div>

Single Value → Random should do the job.

> **[Glide • Single Value Column](https://www.glideapps.com/docs/reference/computed-columns/single-value-column)**
>
> Retrieve a single value from a column or relation.

---

<div class="post-metadata">

**Author:** ![Sumer\_Bhadra9](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sumer_bhadra9/32/36080_2.png) [@Sumer\_Bhadra9](https://community.glideapps.com/u/Sumer_Bhadra9)\
**Post date:** [February 15, 2023, 12:12pm UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/3 "2023-02-15T12:12:34Z")

</div>

I had a doubt about the random option. Does it select a value randomly every time?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 15, 2023, 12:18pm UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/4 "2023-02-15T12:18:26Z")

</div>

It will select the same random value.  
But you can use the Shuffle Order action to select another random value.

---

<div class="post-metadata">

**Author:** ![Sumer\_Bhadra9](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sumer_bhadra9/32/36080_2.png) [@Sumer\_Bhadra9](https://community.glideapps.com/u/Sumer_Bhadra9)\
**Post date:** [February 15, 2023, 12:25pm UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/5 "2023-02-15T12:25:40Z")

</div>

Let me explain my use case. I have a list of resources in one table. I want to display a random item from the resource table at the click of a button, every time. I would like to learn about how a shuffled order action would solve this issue.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 15, 2023, 12:35pm UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/6 "2023-02-15T12:35:56Z")

</div>

Assuming that you are navigating to a details screen via a list, create a custom action with two steps:

- Shuffle Order
- Show Details Screen → This Item

![CleanShot 2023-02-15 at 20.34.33](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/1/8189ca88950ebd3d38332e0ef1e5f4465c93e083.gif)

---

<div class="post-metadata">

**Author:** ![Sumer\_Bhadra9](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sumer_bhadra9/32/36080_2.png) [@Sumer\_Bhadra9](https://community.glideapps.com/u/Sumer_Bhadra9)\
**Post date:** [February 15, 2023, 12:50pm UTC](https://community.glideapps.com/t/show-random-sentences-to-user-shuffle-roll-dice-how-to/57982/7 "2023-02-15T12:50:14Z")

</div>

Thank you for helping quickly. This roadmap will help me deliver the right solution.
