DEV Community

Discussion on: How do you do random?

Collapse
 
jochemstoel profile image
Jochem Stoel
const between = (min, max) => Math.floor(Math.random() * max) + min