Game - Random Number Generator

How do I put a random number generator inside my Storyline?  I am trying to generate "randomly" five separate numbers between 1 - 64.  Each number corresponds to a picture.  After five numbers have been generated, the student will click on the numbers generated to reveal a picture (but that is separate from this question).  Right now I am focusing on how to have the student click on the generator and come up with 3 to 5 numbers.

18 Replies
Robin King

All of your are the most awesome group of people EVER! @Cheng Li--Thank you so much for putting it all together on a Storyline slide. That is just above and beyond the call of duty, and it helps me immensely.  @Ashley somehow you might want to put Cheng Li's solution in the community with additional instructions on how to change the number spread.  Thank you everyone so much  

Cheng Li

Robin King said:

All of your are the most awesome group of people EVER! @Cheng Li--Thank you so much for putting it all together on a Storyline slide. That is just above and beyond the call of duty, and it helps me immensely.  @Ashley somehow you might want to put Cheng Li's solution in the community with additional instructions on how to change the number spread.  Thank you everyone so much  


You are welcome. I incorporated a solution for your latter question: displaying picture after the fifth number is generated, in case you wonder. See attached.

Cheng

Jo Lamontagne

Wooohoo!!  Having not paid close enough attention to the original instructions,

a:  I somehow deleted the javascript coding

b: tried to include the jump to direction in the coding (?!!?!)

Fortunately, with the guidance based on this particular forum and from eLearning Heroes across the globe, I've found a way to make my Great British Bake Off sweepstake work :)

 

Now...to pretty it up!  The show starts tonight so it's cutting it close!

 

Thanks folks, I've attached the finished story file, where the interactions are now working correctly :)

 

jo xxx