Answers for "how to get specific number of random items from an array using 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 "how to get specific number of random items from an array using js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language