Randomly select option

Dec 04, 2014

Hi guys,

I'm building a simulation using a combination of Articulate and a ton of javascript. What I'd like to do is have the time to make a decision determined by the timeline (say 4 minutes) so that the user needs to process information presented, and then act quickly. On a given slide, when they make a choice, it will branch to a new slide and using the code we have written have even further implications in the simulation.

If they don't make a decision in a set amount of time, I'd like the decision to be made, randomly, for them. Right now we are using radio buttons, but the radio buttons could most likely be selected automatically using a code and a variable change, correct?

 

1 Reply
Michael Hinze

Since you are already using JavaScript, you could add one more script that generates a random number, pass that number into a Storyline variable and then branch based on that variable. Her is a thread that discusses how to generate random numbers, one option is a non-JavaScript option that uses a quiz bank: https://community.articulate.com/discussions/articulate-storyline/random-number-generator

This discussion is closed. You can start a new discussion or contact Articulate Support.