Answers for "get random ittem in array js"

3

get random entry from array javascript

const rnd = (arr) => { return arr[Math.floor(Math.random() * arr.length)] };
Posted by: Guest on January-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language