Randomizing layers that appear

Jan 25, 2014

Is there any way to randomize the order that the layers that appear?  I've got a content/drills on each layer that I want to be random and different each time a user comes to the page or hits a "Start Over" button and

a new order will generate.  How would I randomize that process? 

Thanks,

3 Replies
Michael Hinze

There is no built-in feature to randomly display layers. You could use a JavaScript (see the script sample at the bottom of this post here: http://www.articulate.com/support/storyline/javascript-best-practices-and-examples) or you could try a non-Javascript option that is described here: http://community.articulate.com/forums/p/13240/172941.aspx

ted hildebrandt

Those videos demonstrating how to generate a random number in JavaScript were

perfect.  Thanks so much as it answered several other questions I had too. 

I wish there was a way in Storyline to generate a random number natively though.

I can't tell you how well this is working for me.  Between the E-Learning Uncovered

book, the videos and the best of all this forum I'm making my way into Storyline learning

every day and with every time I get stumped it just keeps getting better and I'm getting

more proficient.  This is the best!   Thanks!  

Michael Hinze

ted hildebrandt said:

Those videos demonstrating how to generate a random number in JavaScript were

perfect.  Thanks so much as it answered several other questions I had too. 

I wish there was a way in Storyline to generate a random number natively though.

I can't tell you how well this is working for me.  Between the E-Learning Uncovered

book, the videos and the best of all this forum I'm making my way into Storyline learning

every day and with every time I get stumped it just keeps getting better and I'm getting

more proficient.  This is the best!   Thanks!  


I agree, it would be nifty to have a Storyline function/trigger to generate a random number. You can always make a feature request here: http://www.articulate.com/support/contact/submit.php?form=feature

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