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:)
ScreenShot2022-04-01at17.35.39.png: 400x836, 202k (2022-04-06 10:24)

Whole list randomized

(:thumblist count=4 px=64 order=random:)
Prokudin-Gorskii-19.jpg: 740x640, 169k (2009-02-13 12:30) V838_Mon_HST.jpg: 640x640, 65k (2009-02-13 12:30) NMMP_dolphin_with_locator.jpeg: 532x640, 132k (2009-02-13 12:30) ISS_Aug2005.jpg: 800x541, 124k (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:)
2014-11-29T14.01.20-PB297709-Sin.jpeg: 444x351, 13k (2015-03-16 23:22) Hurricane_Dennis_on_July_7_2005_1550_UTC.jpg: 498x640, 95k (2009-02-13 12:30) Robby_Naish_a-1.jpg: 800x534, 107k (2009-02-13 12:30) shuttle.php.jpg: 728x640, 72k (2019-07-28 20:02)

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