# Shuffle button

**URL:** <https://community.glideapps.com/t/shuffle-button/10800>\
**Category:** Project Showcase\
**Created:** [June 13, 2020, 2:28pm UTC](https://community.glideapps.com/t/shuffle-button/10800 "2020-06-13T14:28:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_Nishiwaki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/k_nishiwaki/32/4709_2.png) [@K\_Nishiwaki](https://community.glideapps.com/u/K_Nishiwaki)\
**Post date:** [June 13, 2020, 2:28pm UTC](https://community.glideapps.com/t/shuffle-button/10800/1 "2020-06-13T14:28:43Z")

</div>

I tried playing with Reshuffle.  
Let’s shuffle!!

> **[VLOG on YOUTUBE](https://vlogonyoutube.glideapp.io)**
>
> New encounter and add your favorite vlogs.

---

<div class="post-metadata">

**Author:** ![Wiz.Wazeer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/wiz.wazeer/32/72423_2.png) [@Wiz.Wazeer](https://community.glideapps.com/u/Wiz.Wazeer)\
**Post date:** [June 13, 2020, 2:31pm UTC](https://community.glideapps.com/t/shuffle-button/10800/2 "2020-06-13T14:31:56Z")

</div>

Really cool app and good use of the shuffle button.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [June 13, 2020, 2:48pm UTC](https://community.glideapps.com/t/shuffle-button/10800/3 "2020-06-13T14:48:11Z")

</div>

@K_Nishiwaki nice👍 How did you get the YouTube to play when you click the shuffle button?

---

<div class="post-metadata">

**Author:** ![K\_Nishiwaki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/k_nishiwaki/32/4709_2.png) [@K\_Nishiwaki](https://community.glideapps.com/u/K_Nishiwaki)\
**Post date:** [June 13, 2020, 3:35pm UTC](https://community.glideapps.com/t/shuffle-button/10800/4 "2020-06-13T15:35:28Z")

</div>

Get the playlist ID using the YouTube DATA API.  
[https://developers.google.com/youtube/v3/docs/playlists](https://developers.google.com/youtube/v3/docs/playlists)

Simply connect to the url below with the template function of the glide data table.  
[https://www.youtube.com/playlist?list=](https://www.youtube.com/playlist?list=)

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [July 2, 2020, 10:05pm UTC](https://community.glideapps.com/t/shuffle-button/10800/5 "2020-07-02T22:05:31Z")

</div>

Hey @K_Nishiwaki! That’s a neat app.

I am trying to get a pokemon app for my son but I am having trouble making the shuffle button work.

Any trick/logics that I need to know?

Thanks.

P.S. This is my first time using the reshuffle action.

---

<div class="post-metadata">

**Author:** ![Cmstewart42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cmstewart42/32/7319_2.png) [@Cmstewart42](https://community.glideapps.com/u/Cmstewart42)\
**Post date:** [July 3, 2020, 4:27pm UTC](https://community.glideapps.com/t/shuffle-button/10800/6 "2020-07-03T16:27:58Z")

</div>

The reshuffle button when placed on a page Will randomize the displayed sort order of any lists displayed on the same page when clicked.

So change the page type to details then add a list and a button with the reshuffle action configured and you should be up and running

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [July 3, 2020, 4:33pm UTC](https://community.glideapps.com/t/shuffle-button/10800/7 "2020-07-03T16:33:34Z")

</div>

Hey @Cmstewart42,

I tried it that way. it did not work for me.

Thanks

---

<div class="post-metadata">

**Author:** ![Ed\_Pietrzak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ed_pietrzak/32/9216_2.png) [@Ed\_Pietrzak](https://community.glideapps.com/u/Ed_Pietrzak)\
**Post date:** [July 3, 2020, 8:03pm UTC](https://community.glideapps.com/t/shuffle-button/10800/8 "2020-07-03T20:03:14Z")

</div>

Need to sort your list by random. Features, sort, random.

Then the reshuffle button will shuffle them. I’ve been doing that but trying how to only display one result.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 3, 2020, 8:09pm UTC](https://community.glideapps.com/t/shuffle-button/10800/9 "2020-07-03T20:09:47Z")

</div>

There would be a delay, but you could add a randbetween formula in the spreadsheet. To generate a random number 1-x where x is the number of rows in the sheet. Then Grab the maximum number using a Rollup column and filter where the randbetween is the maximum.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [July 3, 2020, 8:12pm UTC](https://community.glideapps.com/t/shuffle-button/10800/10 "2020-07-03T20:12:25Z")

</div>

Thanks @Robert_Petitto, I’ll try this option.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 3, 2020, 8:24pm UTC](https://community.glideapps.com/t/shuffle-button/10800/11 "2020-07-03T20:24:30Z")

</div>

Actually, this might not work, because the randbetween numbers only change if the sheet is edited.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 3, 2020, 8:28pm UTC](https://community.glideapps.com/t/shuffle-button/10800/12 "2020-07-03T20:28:04Z")

</div>

What if you didn’t use the reshuffle. Use an increment button instead that would edit the sheet which would shuffle the randbetween values. There would be a lag though.

---

<div class="post-metadata">

**Author:** ![Ed\_Pietrzak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ed_pietrzak/32/9216_2.png) [@Ed\_Pietrzak](https://community.glideapps.com/u/Ed_Pietrzak)\
**Post date:** [July 3, 2020, 8:38pm UTC](https://community.glideapps.com/t/shuffle-button/10800/13 "2020-07-03T20:38:23Z")

</div>

The ranbetween gets updated if you go into the Google sheet settings and pick update by time. I did this to try and get my single view. It sort of works, but you are right it is delayed. I then added a switch to force the update as well in the glide sheet. It seems to double shuffle. Once when the glide data updates and then when the sheet updates and then when it sends it back to glide.

---

<div class="post-metadata">

**Author:** ![Cmstewart42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cmstewart42/32/7319_2.png) [@Cmstewart42](https://community.glideapps.com/u/Cmstewart42)\
**Post date:** [July 3, 2020, 8:50pm UTC](https://community.glideapps.com/t/shuffle-button/10800/14 "2020-07-03T20:50:25Z")

</div>

Rand updates every time any change is made to the sheet.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [July 3, 2020, 8:58pm UTC](https://community.glideapps.com/t/shuffle-button/10800/15 "2020-07-03T20:58:09Z")

</div>

That’s what I did but I wanted to try the shuffle button.

Thanks!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 3, 2020, 10:38pm UTC](https://community.glideapps.com/t/shuffle-button/10800/16 "2020-07-03T22:38:22Z")

</div>

Duh…do this. Don’t use an inline list. Build your own single view with an image and text:

---

<div class="post-metadata">

**Author:** ![Ed\_Pietrzak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ed_pietrzak/32/9216_2.png) [@Ed\_Pietrzak](https://community.glideapps.com/u/Ed_Pietrzak)\
**Post date:** [July 4, 2020, 12:51am UTC](https://community.glideapps.com/t/shuffle-button/10800/17 "2020-07-04T00:51:48Z")

</div>

I tried to do that, but couldn’t it to cycle through the images. Do you have each image link in a row on one column? I had 4 images and put a button with reshuffle and couldn’t get it to go through the list. What you did is exactly what I am looking to do.

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [July 4, 2020, 12:56am UTC](https://community.glideapps.com/t/shuffle-button/10800/18 "2020-07-04T00:56:36Z")

</div>

This is awesome! Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 4, 2020, 3:26am UTC](https://community.glideapps.com/t/shuffle-button/10800/19 "2020-07-04T03:26:20Z")

</div>

Exactly! Make sure you have the tab sorted Randomly

 ![Screen Shot 2020-07-03 at 11.26.04 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b9403a47554de3f61c3c4180e2f4e214d433f1d9.jpeg)

---

<div class="post-metadata">

**Author:** ![Ed\_Pietrzak](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ed_pietrzak/32/9216_2.png) [@Ed\_Pietrzak](https://community.glideapps.com/u/Ed_Pietrzak)\
**Post date:** [July 4, 2020, 4:00am UTC](https://community.glideapps.com/t/shuffle-button/10800/20 "2020-07-04T04:00:40Z")

</div>

That was it! I was trying to sort in the component itself and not the tab! Once I did that, beautiful!

[Next page](https://community.glideapps.com/t/shuffle-button/10800.md?page=2)
