Using javascript to generate random numbers between 20 and 40

I have a storyline project consisting of one main menu and 2 sub menus.  The first sub menu  uses  javascript to generate random numbers from 0 to 19.   This works perfectly well.  However in the second sub menu i want the random numbers to start from 20 and finish at 40.  i don't know how to do this.  Please can only one provide the appropriate javascript for me to copy and paste this into storyline 2.

 

6 Replies
Ashley Terwilliger-Pollard

Hi Chris,

I'm not equipped to assist with Javascript as it's not something we can offer support for. You may want to share more information about the code you've set up and how it is working in the one scenario so that folks could offer advice based on your specific code. 

Best of luck with the project!