Javascript Math random(min, max)

Description

Javascript Math random(min, max)


function random(min, max) {
    return Math.floor(Math.random() * (max - min)) + min;
}



PreviousNext

Related