Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Controlled random scripts

by Abigail-II (Bishop)
on Jun 03, 2004 at 14:06 UTC ( [id://360151]=note: print w/replies, xml ) Need Help??


in reply to Controlled random scripts

How often does this code run? If often, you just might want to generate values for specific days in advance and store them in a database. Even generating them for 100 years in advance costs only 36524 or 36525 rows, which is a pretty trivial amount. Just don't forget to run a cron job on each last day of a century. (Or you could just reuse them, noone will remember the banner ad they saw 100 years ago!)

Aternatively, if it's for something like banner ads, or random images, just keep the location of the ad or image fixed. And replace the image or ad on a daily bases.

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://360151]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-03-28 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found