Answers for "get random element javascript"

0

get random element from array js

var item = items[Math.floor(Math.random() * items.length)];
Posted by: Guest on October-28-2020
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 "get random element javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language