let randomNum = Math.random(); //range 0-1
 
let randomNum = Math.random() * 6; //range 0-6
 
let randomNum = Math.floor(Math.random() * 6); //range 0, 1, 2, 3, 4 ,5
 
let randomNum = Math.floor(Math.random() * 6) + 1; //range 1, 2, 3, 4 ,5, 6

Random number between a certain range:

const min = 50
const max = 100
 
let randomNum = Math.floor(Math.random() * (max - min)) + min;