View Single Post
  #3  
Old December 5th, 2021, 12:24 PM
Ned Seagoon's Avatar
Ned Seagoon Ned Seagoon is offline
CTH Subscriber
 
Join Date: Jun 2004
O/S: Windows 10 Home
Location: Sunshine Coast, Australia
Age: 80
Posts: 3,670
Quote:
Originally Posted by The Dude View Post
I notice it loads a different picture everytime you load the page...
How does it work i wonder??
There would be a server side program that includes a database of pictures and a randomize. There are several ways to write such a randomize program, but if I was doing it I would take the system time at the instant of the request and divide it by a number that is the size of the length of the database. This would give an output of how many times the system time is divisible exactly by that number, which I would ignore, and a remainder, which I would use. The remainder would determine from where in the database the picture was selected.

Yes, this game is fun, I have managed to get most out, but the time taken varies greatly. Thanks for the complement, Monsieur.

Last edited by Ned Seagoon; December 6th, 2021 at 11:18 AM.
Reply With Quote