Shuffle: order=random

Note: The shuffle=1 parameter that existed in the old Thumblist is deprecated. Please use order=random with ThumbList².

This page demonstrates the possibility of a random thumbnail displayed, or a random selection of thumbnails, by the parameter order=random.

One random thumbnail

This is only possible with thumblist count=1:

(:thumblist count=1 px=64 order=random:)
Prokudin-Gorskii-12.jpg: 703x640, 198k (2009-02-13 12:30)

Whole list randomized

(:thumblist count=4 px=64 order=random:)
Port_wine.jpg: 800x600, 96k (2009-02-13 12:30) Screen Shot 2022-04-01 at 17.35.39.png: 400x836, 202k (2022-04-06 10:24) DuplexScaling.jpg: 800x600, 140k (2009-02-13 12:30) Life_Saint-Austremoine_Issoire_bottom_n2.jpg: 652x640, 159k (2009-02-13 12:30)

Reload the page to see how it changes. If you use supercache=1 (don't), the files will obviously be shuffled only once and stored/displayed in that order.

(Re-)Ordering a random sample

(:thumblist count=4 px=64 order=random order2=name:)
Orange_juice_1_edit1.jpg: 450x640, 58k (2009-02-13 12:30) Uss_iowa_bb-61_pr.jpg: 800x533, 173k (2009-02-13 12:30) Vasnetsov_samolet.jpg: 800x441, 82k (2009-02-13 12:30) Wrightflyer.jpg: 800x477, 42k (2009-02-13 12:30)

Using order=random will shuffle the list. Using count=4 will take 4 pictures from the random list. Using order2=name will order the 4 random pictures by name. See also Order.

Notes

  • "random order"==no "image trails" in the template (<<|>>). Because the files are shuffled on every page load and there is no way to cache the trail list (it would change on the next page view).
  • On this page where the order is random, I am using $EnableIMSCaching = 0; to prevent the page caching by the browsers.

See also