random value between range js code example
Example: random in a range js
const rnd = (min,max) => { return Math.floor(Math.random() * (max - min + 1) + min) };
const rnd = (min,max) => { return Math.floor(Math.random() * (max - min + 1) + min) };