Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

generate diffrent random array Numbers

const array = ["a", "b", "c", "d", "e", "f", "g"];

while (array.length) {
  const ndx = Math.random() * array.length | 0;
  const elem = array.splice(ndx, 1)[0];
  console.log(elem);
}
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #diffrent #random #array #Numbers
ADD COMMENT
Topic
Name
9+6 =