----- Original Message ----- From: "Uri Guttman" <u...@stemsystems.com>
To: "Mike Blezien" <mick...@frontiernet.net>
Cc: "Perl List" <beginners@perl.org>; "Mike McClain" <mike.j...@nethere.com>
Sent: Wednesday, February 09, 2011 9:35 AM
Subject: Re: Randomizing a 24hr time period


"MB" == Mike Blezien <mick...@frontiernet.net> writes:

 MB> What they have right now are about 25 messages they wish to spread
 MB> out through out a 24hr period so they are sent out randomly during
 MB> this 24 period, not a pre determined every X minutes or X
 MB> hours. Why .... I'm not really sure, but that's what they want to
 MB> do. I think I have it figured out though.

as i said a simple solution is to slice up the 24 hours into fixed
intervals. then pick a random time INSIDE each interval. random enough
for those types of people. this is close to one message an hour so there
is plenty of variability within each hour. and the coding is trivial.

uri

Uri,

that's what I'm working on at the moment, trying to randomize the intervals after splitting up the 24hr period.

Thx's

Mike

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to