# Help with re-ordering multiple choice answers on random generated questions

**URL:** https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686
**Category:** Questions
**Created:** [May 22, 2024, 9:01pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686 "2024-05-22T21:01:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Charles\_Leidecker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charles_leidecker/32/5047_2.png) [@Charles\_Leidecker](https://cl.desmos.com/u/Charles_Leidecker)
#### Post date: [May 22, 2024, 9:01pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/1 "2024-05-22T21:01:39Z")

</div>

I cannot figure out how to re-order multiple choice answers upon a button press on a randomly generated question.

Here is the link to the activity.

[Desmos](https://teacher.desmos.com/activitybuilder/custom/664e4d4df41fc6693ad4ae36)

The first page is the question I am working on. The second page has code that does what I want, but I cannot figure out how to incorporate it into my question.

Thank you in advance!

---

<div class="post-metadata">

### Author: ![Aarthi\_Vadhanam](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/aarthi_vadhanam/32/5178_2.png) [@Aarthi\_Vadhanam](https://cl.desmos.com/u/Aarthi_Vadhanam)
#### Post date: [May 23, 2024, 2:25pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/2 "2024-05-23T14:25:53Z")

</div>

Here’s a workable solution. The only caveat is that the correct answer rotates in a predictable order if a student pays enough attention. Hope it still helps somewhat!

> **[\[Copy of\] HELP ME WITH MC REORDER ON RANDOM QUESTIONS • Activity Builder by...](https://teacher.desmos.com/activitybuilder/custom/664f3badafad467112e888f9)**
>
> by Aarthi Vadhanam

---

<div class="post-metadata">

### Author: ![Charles\_Leidecker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charles_leidecker/32/5047_2.png) [@Charles\_Leidecker](https://cl.desmos.com/u/Charles_Leidecker)
#### Post date: [May 23, 2024, 2:35pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/3 "2024-05-23T14:35:30Z")

</div>

Fantastic! I’m working with 8th graders so perhaps this will not be noticeable to them 😉

---

<div class="post-metadata">

### Author: ![mxepstein](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mxepstein/32/116_2.png) [@mxepstein](https://cl.desmos.com/u/mxepstein)
#### Post date: [May 23, 2024, 4:26pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/4 "2024-05-23T16:26:49Z")

</div>

You could also replace that line of code (#18) where num uses the pressCount and mod, by using the pressCount as a seed to a random number like…

num=randomGenerator(B.pressCount).int(1,4)

---

<div class="post-metadata">

### Author: ![Aarthi\_Vadhanam](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/aarthi_vadhanam/32/5178_2.png) [@Aarthi\_Vadhanam](https://cl.desmos.com/u/Aarthi_Vadhanam)
#### Post date: [May 24, 2024, 1:52pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/5 "2024-05-24T13:52:42Z")

</div>

Ooh I didn’t know you could do that! That’s awesome!

---

<div class="post-metadata">

### Author: ![Charles\_Leidecker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/charles_leidecker/32/5047_2.png) [@Charles\_Leidecker](https://cl.desmos.com/u/Charles_Leidecker)
#### Post date: [May 24, 2024, 2:04pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/6 "2024-05-24T14:04:18Z")

</div>

Perhaps I did it wrong, but when I tried

num=randomGenerator(B.pressCount).int(1,4)

it was much more predictable than your coding.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)
#### Post date: [May 26, 2024, 2:04pm UTC](https://cl.desmos.com/t/help-with-re-ordering-multiple-choice-answers-on-random-generated-questions/5686/7 "2024-05-26T14:04:23Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
