random picture limitation (not a bug) random picture limitation (not a bug)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

random picture limitation (not a bug)

Started by kenno, September 02, 2004, 04:24:23 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kenno

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


kegobeer

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
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kenno


kegobeer

No, it's not a bug at all.  A bug implies there's a glitch or programming error, which isn't the case.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

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

Casper

I just went to your site, and every time I refreshed the page, a completely different set of random pics came up. 
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here