Sep 13, 2018

[HDGEM] How to generate a random number in JavaScript

A randomly generated decimal multiplied by 88, then rounded down to the nearest whole number

var n=88;
var r=Math.floor(Math.random()*n);



--
Posted By Blogger to HDGEM at 12/31/2016 05:34:00 AM