var max = 22; var min = 3; var randomNumber = Math.floor(Math.random() * (max - min + 1)) + min;
var randomNumber = Math.floor(Math.random() * (max + 1));