Use Swiss Army:
http://www.dynamicdrive.com/dynamici...army/index.htm
It already has that feature, plus tons of other options.
It also does random. And to answer that part of your question, the randomizing code:
Code:
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
Does not produce a perfectly randomized array in that it tends to favor certain combinations over others, but it will eventually produce all possible recombinations if run enough times - very good considering its low overhead. And it is only run once per slide show per page load. So, once the show is randomized by it, the 'new' random order will repeat until the show is reloaded.
Also, remember that random means random, so any particular order (even the original one) may result after any given use of the randomizing code.
If you are not seeing any randomization though, perhaps you've configured the script incorrectly.
Bookmarks