Selecting random values from an array without repetition in Javascript

Below a very simple script to get random values from an array without repetition. The basic idea is to randomly select an array item. Then publish that array item and remove it from the array. Repeat this process untill all array items are processed.

Leave a Reply

Your email address will not be published. Required fields are marked *