Here, we have assigned code to a button for randomizing numbers. You can add this code to timeline or layer depending on your requirement.
Finally, publish the file to view the output.
Note: This code does not work in preview mode.
This method will be useful for an earlier versions Articulate Storyline 2 or 3. By default, the random variable is available in Articulate Storyline 360.
Click below to view this Sample: