# Any way to create a randomized stack list?

**URL:** <https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617>\
**Category:** Questions about Thunkable X\
**Created:** [March 8, 2019, 1:32pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617 "2019-03-08T13:32:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kegamo\_Akiri](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Kegamo\_Akiri](https://community.thunkable.com/u/Kegamo_Akiri)\
**Post date:** [March 8, 2019, 1:32pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/1 "2019-03-08T13:32:22Z")

</div>

More specificaly, how can I avoid repetition while getting a random number from a list 10 times.

Thanks

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 8, 2019, 2:27pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/2 "2019-03-08T14:27:51Z")

</div>

This works in Classic. It should work in principal in X as well

[https://puravidaapps.com/snippets.php#2removerandom](https://puravidaapps.com/snippets.php#2removerandom)

---

<div class="post-metadata">

**Author:** ![Kegamo\_Akiri](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Kegamo\_Akiri](https://community.thunkable.com/u/Kegamo_Akiri)\
**Post date:** [March 8, 2019, 4:07pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/3 "2019-03-08T16:07:12Z")

</div>

In a somewhat similar way tried this:

 ![fd](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/d/bd4150cbd702134c39a9e7c3ceecf4501d222655.jpeg)

But it still picks duplicates, any thoughts?

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 8, 2019, 5:10pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/4 "2019-03-08T17:10:32Z")

</div>

The list logic removes picked items from the list

You are not removing the picked items.

---

<div class="post-metadata">

**Author:** ![Kegamo\_Akiri](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Kegamo\_Akiri](https://community.thunkable.com/u/Kegamo_Akiri)\
**Post date:** [March 9, 2019, 1:11pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/5 "2019-03-09T13:11:58Z")

</div>

Doesn’t the “get and remove” block do that?

---

<div class="post-metadata">

**Author:** ![Cian\_O\_Sullivan](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cian_o_sullivan/32/34494_2.png) [@Cian\_O\_Sullivan](https://community.thunkable.com/u/Cian_O_Sullivan)\
**Post date:** [March 9, 2019, 1:39pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/6 "2019-03-09T13:39:57Z")

</div>

I think nesting the two together is causing a problem.

In addition your list starts with 0 but you are doing the remove starting from 1.

Do a random check, get the value, then remove the value.

---

<div class="post-metadata">

**Author:** ![Kegamo\_Akiri](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Kegamo\_Akiri](https://community.thunkable.com/u/Kegamo_Akiri)\
**Post date:** [March 9, 2019, 3:41pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/7 "2019-03-09T15:41:41Z")

</div>

I’ll give it a try, thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:16pm UTC](https://community.thunkable.com/t/any-way-to-create-a-randomized-stack-list/71617/8 "2024-11-08T12:16:07Z")

</div>


