I want to put a php daemon to sleep (with System_Daemon::iterate())
so it runs max 20 times randomly spread over an hour. maybe a min distance would be smart so it doesn’t run 20 times in the first half hour and 0 times in the second half.
i’m kinda stuck here and don’t know how to start with this one, any help is very apreciated!
i came up with one possible solution, i didnt try it out yet, so it main contain syntax or logic errors. because it is running as a daemon there is a never ending loop around it.
its not perfect and u waste some time but i guess its going to fullfill the job.
any comments?