Javascript Math rnd(i, j)

Description

Javascript Math rnd(i, j)


// Extensions methods
Math.rnd = (i, j) => {/*from   ww  w. j a  v a  2 s  .  co  m*/
    return Math.floor(Math.random() * j) + i;
}



PreviousNext

Related