How to get random number between two numbers in JavaScript

Numbers
By Jad Joubran · 
Last updated Jan 08, 2018
const min = 0;
const max = 10;
let rand;

rand = Math.floor(Math.random() * (max - min + 1)) + min;
a random number between 0 and 10 inclusive
Math.random on MDN