coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: kenno on September 02, 2004, 04:24:23 PM

Title: random picture limitation (not a bug)
Post by: kenno on September 02, 2004, 04:24:23 PM
in the random pictures section i get one picture showing up almost constantly.

it's the first picture in the first album, displayimage.php?album=1&pos=0, all the others appear to be random just that one which shows up more or less all the time.

not a major problem, just thought i'd mention it.

cheers

ken
http://albums.kenfradd.co.uk

Title: Re: random picture bug ?
Post by: kegobeer on September 02, 2004, 04:29:30 PM
This isn't a bug.  This is a limitation of the "random" number generation that php uses.  Could you change your subject to something other than "bug"?

For more information about random numbers, this is a good site:

http://www.aplawrence.com/Basics/randomnumbers.html
Title: Re: random picture limitation (not a bug)
Post by: kenno on September 06, 2004, 04:33:53 PM
more of a bug in php then.

thanks!
Title: Re: random picture limitation (not a bug)
Post by: kegobeer on September 06, 2004, 07:10:22 PM
No, it's not a bug at all.  A bug implies there's a glitch or programming error, which isn't the case.
Title: Re: random picture limitation (not a bug)
Post by: Joachim Müller on September 07, 2004, 07:29:30 AM
The random numbers problem fills up whole university libraries; this is something that has been bothering mathematicians and computer scientists from the very start: after all, a machine like a computer is very well organized and not as chaotic as nature, that's why it is very hard for a computer to actually come up with a random number that is truly "random".
As kegobeer was already suggesting: be carefull when shouting "bug" into any direction if you're not really sure what you're talking about; this is a dead-sure method to make developers mad at you... ;)

Joachim
Title: Re: random picture limitation (not a bug)
Post by: Casper on September 08, 2004, 05:58:20 PM
I just went to your site, and every time I refreshed the page, a completely different set of random pics came up.