Ned Seagoon |
December 5th, 2021 12:24 PM |
Quote:
Originally Posted by The Dude
(Post 1310385)
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.
|