# Trying to set a clickeable button that returns a random image of a set of four. Discards it and when clicked again it returns random one of the three remaining repeating until only one is left

**URL:** <https://community.thunkable.com/t/trying-to-set-a-clickeable-button-that-returns-a-random-image-of-a-set-of-four-discards-it-and-when-clicked-again-it-returns-random-one-of-the-three-remaining-repeating-until-only-one-is-left/2987572>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [May 6, 2024, 12:23pm UTC](https://community.thunkable.com/t/trying-to-set-a-clickeable-button-that-returns-a-random-image-of-a-set-of-four-discards-it-and-when-clicked-again-it-returns-random-one-of-the-three-remaining-repeating-until-only-one-is-left/2987572 "2024-05-06T12:23:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![samir.henry3rz](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samir.henry3rz/32/176572_2.png) [@samir.henry3rz](https://community.thunkable.com/u/samir.henry3rz)\
**Post date:** [May 6, 2024, 1:49pm UTC](https://community.thunkable.com/t/trying-to-set-a-clickeable-button-that-returns-a-random-image-of-a-set-of-four-discards-it-and-when-clicked-again-it-returns-random-one-of-the-three-remaining-repeating-until-only-one-is-left/2987572/2 "2024-05-06T13:49:23Z")

</div>

> [@Random one data output](https://community.thunkable.com/t/random-one-data-output/1664364/16):
>
> THIS IS WHY YOU GET ALL OF THEM: if you read carefully, this block is taking ONE random item from a LIST (which has two slots - the first is a LIST of the answer thjnkable blah blah, the 2nd slot is unused) so the LIST really has only one item. now you’re taking one random item from a list containing one item so you will always get that item - but that item happens to contains a handful of values! that’s why you’re getting the results you describe. detach the list block with 2 slots from the …

> [@How to list functions and choose one at random?](https://community.thunkable.com/t/how-to-list-functions-and-choose-one-at-random/1584247):
>
> I would like to be able to add certain functions to a list and randomly call one of them Is there a more dynamic way of doing this than my example below?

I think these topics can help you.

---

_[View the full topic](https://community.thunkable.com/t/trying-to-set-a-clickeable-button-that-returns-a-random-image-of-a-set-of-four-discards-it-and-when-clicked-again-it-returns-random-one-of-the-three-remaining-repeating-until-only-one-is-left/2987572)._
