Answers for "how to get random name from array in javascript"

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 "how to get random name from array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language