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

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

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!

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!

1 Like

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

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)

1 Like

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

Perhaps I did it wrong, but when I tried

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

it was much more predictable than your coding.

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