Advanced search  

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

Pages: [1]   Go Down

Author Topic: random picture limitation (not a bug)  (Read 2973 times)

0 Members and 1 Guest are viewing this topic.

kenno

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
random picture limitation (not a bug)
« 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

« Last Edit: September 06, 2004, 04:33:11 pm by kenno »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: random picture bug ?
« Reply #1 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: random picture limitation (not a bug)
« Reply #2 on: September 06, 2004, 04:33:53 pm »

more of a bug in php then.

thanks!
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: random picture limitation (not a bug)
« Reply #3 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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: random picture limitation (not a bug)
« Reply #4 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: random picture limitation (not a bug)
« Reply #5 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. 
Logged
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
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 18 queries.