How to do this:
- Create a variable in storyline called “randnum”
var randomnumber = Math.floor((Math.random()*10)+1);
var player = GetPlayer();
3. Add in a reference to the storyline variable (%randnum%) where the random number will be displayed.