// Рандом от мин до макс включитьельно var min = 10, max = 20; var rand = min + Math.floor(Math.random() * (max + 1 - min));