How To Create Random Numbers In Articulate Storyline 3 Using JavaScript

Audio Transcription

hello and welcome to Swift elearning services today in this video we will show you how to create random numbers in articulate storyline 3 let’s jump into the topic first create a layer in this layer we need to insert 1 numeric entry field click on the insert then click on input and insert a numeric entry field next create a submit button next we need to modify numeric entry box variable click on X sign which is located on the right side then click on numeric entry variable and name it as men value next duplicate this layer and name it as max value also we have to modify numeric entry box variable click on X ein and name the variable as max value then we need to create two variables click on the plus sign and create a text variable and name it as R and set create another number variable and name it as random value then create a text box in the base layer in the text box insert random value variable using reference now go to the max value layer and create action as shown execute JavaScript when user clicks submit button in the script box pastes the code which is given in our description or add the code as shown on screen next create another trigger to hide this layer when user clicks submit button then go to the men value layer and create a trigger to show the max value layer when user clicks submit button then in the base layer create the following triggers show men value layer when timeline stats execute the JavaScript when the user clicks click Me button in the script box add the code as shown execute the JavaScript when the user clicks reset me button in the script box add the code as shown set the mini value variable equal to zero when the user clicks reset me button set the max value variable equal to zero when the user clicks reset me button set the random value variable equal to zero when the user clicks reset me button finally create a trigger to jump to this slide when the user clicks reset me now publish the course for further process Here I am given the minimum value is one and maximum value is 10 so here we’ll see random numbers between the 1 to 10 when clicking click new button we have to reset the randomization by clicking reset me button have you enjoyed this video thank you for watching this video subscribe to our YouTube channel for more videos for more information visit us at WWF tea learning services calm

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *