Generate a random integer between two numbers in a range
const random = (min, max) => ~~(Math.random() * ((max - min) + 1)) + min
~~
is shortcut for Math.floor()
const random = (min, max) => ~~(Math.random() * ((max - min) + 1)) + min
~~
is shortcut for Math.floor()