PHP Code to generate event to repeat in a random shuffle of intervals between 1-20 seconds
<p>This program sends an email every 20 sec. </p>

<p>How can I amend the code to have it send an email, then pause for a random number of seconds between 1 and 20, then repeat till the end ?
Any help on this is much appreciate. Thanks in advance! </p>

<p>Here is the code that is associated with the Delay section of the User Interface as it is </p>

<pre><code>if (!$delaySecs) {

$delaySecs = 20; 

}

&lt;input name="delaySecs" type="text" value="&lt;? print $delaySecs; ?&gt;" size="10"&gt;
</code></pre>
