# Shuffle/Randomize MC Options on Button Press?

**URL:** https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602
**Category:** Questions
**Created:** [December 6, 2022, 6:42pm UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602 "2022-12-06T18:42:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Scott\_Walker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/scott_walker/32/3100_2.png) [@Scott\_Walker](https://cl.desmos.com/u/Scott_Walker)
#### Post date: [December 6, 2022, 6:42pm UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602/1 "2022-12-06T18:42:18Z")

</div>

I have designed a [repeated practice page](https://teacher.desmos.com/activitybuilder/custom/638dfcc181e7bf793f1f5d1a) with multiple choice options. Unfortunately, I am not sure how to re-shuffle the multiple choice options when students select the “Try Another” button (especially desired on Screen 2 of my activity). I saw a [feature request thread](https://cl.desmos.com/t/feature-request-randomize-mc-upon-new-question-generation/3350) and a corresponding reply that demonstrated a work around (which I honestly don’t fully understand the coding for), but I think that specific solution may only work when each choice is a number…?

Can anyone help me understand how I can code screen 2 of my activity to shuffle the position of my multiple choice options? I plan to make several other similar repeated practice pages and would love to know how to get this to work.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![ianmcmeek](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ianmcmeek/32/3966_2.png) [@ianmcmeek](https://cl.desmos.com/u/ianmcmeek)
#### Post date: [December 7, 2022, 7:53pm UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602/2 "2022-12-07T19:53:51Z")

</div>

Adapting some of @cwinske’s ideas from the thread you linked, here is a much simpler activity that re-orders multiple choice options:

> **[Randomizing Multiple Choice • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6390ea2dc171f3b25e7bc80f)**
>
> by Ian M

Layering this re-ordering paradigm on top of all the awesome features you have already built into your exponential functions practice page seems time consuming but doable. On the plus side, I _think_ it should be straightforward to transfer to new repeated practice activities.

I hope that helps! I’m happy to take a stab at working this into the activity you shared if that’s something you’re interested in.

---

<div class="post-metadata">

### Author: ![Scott\_Walker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/scott_walker/32/3100_2.png) [@Scott\_Walker](https://cl.desmos.com/u/Scott_Walker)
#### Post date: [December 8, 2022, 4:50am UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602/3 "2022-12-08T04:50:46Z")

</div>

Thanks for the reply, @ianmcmeek ! I’ll take a look and see if I can figure this out.

---

<div class="post-metadata">

### Author: ![Scott\_Walker](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/scott_walker/32/3100_2.png) [@Scott\_Walker](https://cl.desmos.com/u/Scott_Walker)
#### Post date: [December 8, 2022, 4:15pm UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602/4 "2022-12-08T16:15:04Z")

</div>

@ianmcmeek I was able to get this idea incorporated into the activity I’ve been building. Thank you very much for your timely assistance!

---

<div class="post-metadata">

### Author: ![ianmcmeek](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ianmcmeek/32/3966_2.png) [@ianmcmeek](https://cl.desmos.com/u/ianmcmeek)
#### Post date: [December 8, 2022, 5:13pm UTC](https://cl.desmos.com/t/shuffle-randomize-mc-options-on-button-press/4602/5 "2022-12-08T17:13:37Z")

</div>

I just took another look at your practice activity - the back end scripting is intimidating (kudos to you!), and it all comes together to make a very clean student-facing experience. Cool model for repeated practice that I’m looking forward to borrowing ideas from.
