By changing the link each time, you're helping to spread out the traffic generated from your site. The srand function sets a seed based on the current time and the process identification for the random number generator. This ensures a truly random distribution. In Perl, arrays are zero-based, meaning that the first element has an index of zero. We then use the rand function to get a random number from 0 to the index number of the last URL in the array.
Users can simply click on the link to travel to a random location.
Until . . . Unfortunately, you cannot pass query information as part of an SSI exec cgi directive. However, a CGI program called by the exec SSI directive from a static HTML document has access to the query string passed to this document. This conversion makes it easy for us to subtract dates. An important thing to remember is that this program will not calculate dates correctly if you pass in a date before 1970.