Problems with Random Number javascript

Feb 05, 2014

Sio I copied and pasted the javascript code from the Articulate Support page

var randomnumber = Math.floor((Math.random()*10)+1);
var player = GetPlayer();

I created the variable "randnum" and have a button trigger to execute the javascript, but.............

its not working.  I'm lost as to what the problem.  

Thanks for any help.

13 Replies
Elizabeth Blakemore

Hi There

I am trying to replicate the snakes and ladders game I have seen within this site somewhere.  This is as far as I have got.   I am stuck on the random number variable.  I can't get it to work.  I have uploaded it to a web server and still it doesn't work.  I am attaching it.  Any help gratefully received.  Thanks

This discussion is closed. You can start a new discussion or contact Articulate Support.