Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get random entry from array javascript

const rnd = (arr) => { return arr[Math.floor(Math.random() * arr.length)] };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #entry #array #javascript
ADD COMMENT
Topic
Name
3+9 =