Had an idea for a random generator in Javascript, and not sure how to do one part. Essentially, I need to be able to display about 20 items on a list in random order without repeating any items. The random list is easy enough, I just don't know how to keep from having repeats.
The only thing I can think of is using a boolean variable for each list item and having the script skip any that are marked as having been displayed already...
The only thing I can think of is using a boolean variable for each list item and having the script skip any that are marked as having been displayed already...
Comment