Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Random pix not random at all  (Read 2119 times)

0 Members and 1 Guest are viewing this topic.

metropolis2003

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Random pix not random at all
« on: March 03, 2004, 03:21:17 pm »

Hi,

probably a MySQL bug (ORDER BY RAND()), but in my CPG installation, the random pictures shown on the gallery main page are not random at all. I have set it to display four random pictures, however one of my total 50 pictures is being displayed about 95% of the time.

There are 2-3 other pictures shown much more often (I'd say about 60%). Those "not randomized" pictures where the numbers 2,3,4,5 when I (batch-)uploaded the pictures. The first picture I uploaded however does not show a significant display peak.

Anyone had similar problems? How can I hack the randomize function use a different randomizer? (Because I begin to hate that picture  :twisted: )
Logged

Nibbler

  • Guest
Random pix not random at all
« Reply #1 on: March 03, 2004, 03:52:02 pm »

You could try altering it to ORDER BY RAND() ASC or DESC see if that makes any difference.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 18 queries.