]> git.decadent.org.uk Git - memories.git/blobdiff - Memories/Photo.pm
Search by random.
[memories.git] / Memories / Photo.pm
index 5a9b91e56aa133ea4cda60c948a12a6d7e7a9bba..5af62e9dd57af4dea02cac11fea01a196bc613e0 100644 (file)
@@ -14,7 +14,8 @@ BEGIN {
 my %order_by = (
      recent => "uploaded",
      popular => "hit_count",
-     interesting => INTERESTINGNESS_ALGORITHM
+     interesting => INTERESTINGNESS_ALGORITHM,
+     random => "rand()"
 );
 
 while (my($label, $how) = each %order_by) {