# \[Solved\] Lottery Numbers picker?

**URL:** <https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 5, 2021, 2:11pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226 "2021-01-05T14:11:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![phb02223vzf2](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phb02223vzf2](https://community.thunkable.com/u/phb02223vzf2)\
**Post date:** [January 5, 2021, 2:11pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/1 "2021-01-05T14:11:57Z")

</div>

Hi,

For example MEGA MILLIONS(lottery),

first box 5 picking numbers of 70 numbers  
second box 1 picking number of 25 numbers

How can I pick 2 kinds numbers (6 numbers)?

---

<div class="post-metadata">

**Author:** ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)\
**Post date:** [January 5, 2021, 2:44pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/2 "2021-01-05T14:44:23Z")

</div>

use count loops

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 5, 2021, 3:25pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/3 "2021-01-05T15:25:19Z")

</div>

Use random component

![assets_-LAn5scXl2uqUJUOqkJo_-LAn5wecEraNWaG7Ig2g_-LAn67QOIwapnsDmPuFc_blocks-math-✕-fig-11](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0b21a879497c76c19773312b7b258ae0d5b8896b.png)

If you want 4 numbers run it 4 times.

You can also use random in a list of you have predefined numbers

---

<div class="post-metadata">

**Author:** ![phb02223vzf2](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phb02223vzf2](https://community.thunkable.com/u/phb02223vzf2)\
**Post date:** [January 5, 2021, 6:10pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/4 "2021-01-05T18:10:55Z")

</div>

If some random number is same???

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 5, 2021, 7:13pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/5 "2021-01-05T19:13:43Z")

</div>

You can control the random number by choosing the range for example from 1000 to 7000 or any range you specify.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [January 5, 2021, 7:58pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/6 "2021-01-05T19:58:54Z")

</div>

here you go:  
[https://x.thunkable.com/copy/cbaa9ba58de0672ae741e3d4fe19f273](https://x.thunkable.com/copy/cbaa9ba58de0672ae741e3d4fe19f273)

this example shows how to get the first 5 numbers from a list of 1…75 after it is shuffled.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/0173e95e0d4c007ecd202699812d2dc3bcd37ed0.png)

---

<div class="post-metadata">

**Author:** ![phb02223vzf2](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phb02223vzf2](https://community.thunkable.com/u/phb02223vzf2)\
**Post date:** [January 7, 2021, 9:41am UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/7 "2021-01-07T09:41:36Z")

</div>

Thanks…

How can I ascend the picked random numbers???

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 7, 2021, 9:59am UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/8 "2021-01-07T09:59:51Z")

</div>

Use the sort option in the list drawer.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [January 7, 2021, 10:14am UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/9 "2021-01-07T10:14:29Z")

</div>

here’s the version that sorts the 5 numbers (the mega is separate)

> **[Thunkable](https://x.thunkable.com/copy/1f4e62c0a59278fa48a50231726e4018)**

---

<div class="post-metadata">

**Author:** ![phb02223vzf2](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phb02223vzf2](https://community.thunkable.com/u/phb02223vzf2)\
**Post date:** [January 7, 2021, 10:35am UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/10 "2021-01-07T10:35:48Z")

</div>

Thanks…

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [January 8, 2021, 6:56am UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/11 "2021-01-08T06:56:33Z")

</div>

don’t forget me when you win the jackpot!

---

<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:30pm UTC](https://community.thunkable.com/t/solved-lottery-numbers-picker/1042226/12 "2024-11-08T13:30:59Z")

</div>


