Over the weekend I was asked how a macro can be scheduled to run at random times. Of course this is not what the scheduler is intended to do, so I set about thinking up a way of making it "pseudo-random".
The customer said his script took 4.5 minutes to run. My solution was to schedule the macro to run every ten minutes, and to have a random number generator at the start of the script. If the generator produced a 7, the script would continue. If it didn't, it would terminate.
This works, and it did exactly what our customer wanted.
I'm wondering if any community members here can think of a different way. It's always good to keep those creative juices flowing.
View Snippet Page
Running a macro at "random" times (sample and ideas)
Moderators: JRL, Dorian (MJT support), Phil Pendlebury
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
Re: Running a macro at "random" times (sample and ideas)
I didn't have one like that but I did have a site where I generate a bunch of random fake logins for usenet trials.
Basically took the top 100 most popular first names & surnames, then run the random to choose names etc. Then every 3x days the script runs, creates an account using a few domain names that are pointed at mailnesia (temp throw away emails with auto activation links).
The random feature works well.
Basically took the top 100 most popular first names & surnames, then run the random to choose names etc. Then every 3x days the script runs, creates an account using a few domain names that are pointed at mailnesia (temp throw away emails with auto activation links).
The random feature works well.
FIREFIGHTER