# Generating Random number

**URL:** https://community.thunkable.com/t/generating-random-number/1574708
**Category:** Questions about Thunkable X
**Created:** [October 22, 2021, 5:51am UTC](https://community.thunkable.com/t/generating-random-number/1574708 "2021-10-22T05:51:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![itzvinie](https://avatars.discourse-cdn.com/v4/letter/i/eb9ed0/32.png) [@itzvinie](https://community.thunkable.com/u/itzvinie)
#### Post date: [October 22, 2021, 5:51am UTC](https://community.thunkable.com/t/generating-random-number/1574708/1 "2021-10-22T05:51:00Z")

</div>

Generating a random number for users in my app, let’s say I make it to generate from a count of 1-500,I hope a number will not be repeated twice?,  
and how can I exclude an already generated number from the ones to be generated, thanks in advance

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [October 22, 2021, 5:58am UTC](https://community.thunkable.com/t/generating-random-number/1574708/2 "2021-10-22T05:58:46Z")

</div>

This is easily done. Just create a list of numbers from 1 to 500 (block is in the list drawer). Then fetch and remove a random item.

 ![Screen Shot 2021-10-22 at 11.28.04 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/b/fb91990286b6aed76b74100e77ba50cb57279176.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [October 22, 2021, 6:00am UTC](https://community.thunkable.com/t/generating-random-number/1574708/3 "2021-10-22T06:00:05Z")

</div>

Another similar method:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/57b53692b7a70bf331b020e9b892218a6ecd1b9f.png)

---

<div class="post-metadata">

### Author: ![itzvinie](https://avatars.discourse-cdn.com/v4/letter/i/eb9ed0/32.png) [@itzvinie](https://community.thunkable.com/u/itzvinie)
#### Post date: [October 22, 2021, 6:10am UTC](https://community.thunkable.com/t/generating-random-number/1574708/4 "2021-10-22T06:10:41Z")

</div>

Amazing, thanks so much

---

<div class="post-metadata">

### Author: ![itzvinie](https://avatars.discourse-cdn.com/v4/letter/i/eb9ed0/32.png) [@itzvinie](https://community.thunkable.com/u/itzvinie)
#### Post date: [October 22, 2021, 6:11am UTC](https://community.thunkable.com/t/generating-random-number/1574708/5 "2021-10-22T06:11:15Z")

</div>

Thank you ,you are sweet

---

<div class="post-metadata">

### Author: ![itzvinie](https://avatars.discourse-cdn.com/v4/letter/i/eb9ed0/32.png) [@itzvinie](https://community.thunkable.com/u/itzvinie)
#### Post date: [October 22, 2021, 6:12am UTC](https://community.thunkable.com/t/generating-random-number/1574708/6 "2021-10-22T06:12:40Z")

</div>

This is a single user,that means I could make this work for multiple users with CLOuD variable right?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [October 22, 2021, 6:13am UTC](https://community.thunkable.com/t/generating-random-number/1574708/7 "2021-10-22T06:13:49Z")

</div>

Sure. By the way, you can edit your posts instead of creating a bunch of short posts. It keeps the forums more organized.

---

<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, 1:14pm UTC](https://community.thunkable.com/t/generating-random-number/1574708/8 "2024-11-08T13:14:41Z")

</div>


