# \[Solved\] Take some% from couple of lists and show them in one list

**URL:** https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935
**Category:** Questions about Thunkable X
**Tags:** solved, lists
**Created:** [October 10, 2020, 5:56pm UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935 "2020-10-10T17:56:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)
#### Post date: [October 10, 2020, 5:56pm UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/1 "2020-10-10T17:56:38Z")

</div>

Hello,

I have a tricky feature I wonder if someone made already.  
I’m trying to create a questionnaire that will show random questions from a couple of lists.

the tricky part is that the questions of the main list will be determined by the percentage the user chooses from the small lists. for example 20% of the questions from list A 30% from list B and 50% from list C.

Hope I explained this feature properly.  
thanks in advance!

---

<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 10, 2020, 7:22pm UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/2 "2020-10-10T19:22:16Z")

</div>

Here’s the algorithm:

Convert your percentages to integers:  
…AquestionCount=20%\*TotalQuestionCount  
…BquestionCount=30%\*TotalQuestionCount  
…CquestionCount=50%\*TotalQuestionCount

You’ll need to round those results. I’m not sure how it will work in terms of adding up to the TotalQuestionCount so you’ll have to play around with that.

Loops  
…count from 1 to AQuestionCount by 1  
\_\_\_\_\_\_insert random question from AQuestionsList as last in AllQuestionsList  
…count from 1 to BQuestionCount by 1  
\_\_\_\_\_\_insert random question from BQuestionsList as last in AllQuestionsList  
…count from 1 to CQuestionCount by 1  
\_\_\_\_\_\_insert random question from CQuestionsList as last in AllQuestionsList

You may want to scramble the AllQuestionsList or randomly insert items rather than in sequence so that you don’t just have AABBBCCCC as your question order.

---

<div class="post-metadata">

### Author: ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)
#### Post date: [October 11, 2020, 5:41am UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/3 "2020-10-11T05:41:42Z")

</div>

Can you show me how to block it? 🙏

---

<div class="post-metadata">

### Author: ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)
#### Post date: [October 11, 2020, 8:30am UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/4 "2020-10-11T08:30:28Z")

</div>

you wrote a program what you want.

app have 4 list, 1 button 1, text\_Input1

L1, L2, L3 question list in database for example (A, B, C questions list)

List1 is random select question for user

text\_input1 is question amount. user enter it

i didn’t control block (if), you can add.

button click. app automatics calculate a,b,c amount question and select in lists (L1, L2, L3)

i hope app is work for you

[https://x.thunkable.com/copy/58da3dee067b1f057127098a64c42544](https://x.thunkable.com/copy/58da3dee067b1f057127098a64c42544)

 ![list](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/2890252d3260ca57d3da794b7748cc07f4285a51.jpeg)

---

<div class="post-metadata">

### Author: ![oreeldadln](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/oreeldadln/32/89185_2.png) [@oreeldadln](https://community.thunkable.com/u/oreeldadln)
#### Post date: [October 11, 2020, 9:28am UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/5 "2020-10-11T09:28:06Z")

</div>

amazing!  
thank you!

if I want to add more small lists (total 10) how should I do it mathematically?

thank you

---

<div class="post-metadata">

### Author: ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)
#### Post date: [October 11, 2020, 11:36am UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/6 "2020-10-11T11:36:17Z")

</div>

if users answer only 10 question, you should set a=2 , b=3, c=5.

10.20/100=2 (%20)  
10.30/100=3 (%30)  
10.50/100=5 (%50)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [October 11, 2020, 1:03pm UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/7 "2020-10-11T13:03:06Z")

</div>

Nice work!!! 🦾

---

<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:22pm UTC](https://community.thunkable.com/t/solved-take-some-from-couple-of-lists-and-show-them-in-one-list/889935/8 "2024-11-08T12:22:10Z")

</div>


