Help on Random Number function
var min = 0;
var max = 20;
var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min;
var doubleRandom = (randomNumber * 2);
Works fine here, in IE9, Chrome and FF:
Posted in wrong forum. Has nothing to do with DOM or JSON.
Next time, Old Pedant, hit the “report” button so that we moderators get an e-mail with that note. I just came across this by accident, I’m not always browsing every sub forum for wrongly posted threads.
|All times are GMT +1. The time now is 09:38 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.