Using PHP, how do I trigger something once every 100 visits?
<p>Thanks for reading my question, here is what I'm trying to achieve:</p>

<ol>
<li><p>I have a PHP web page that people visit.</p></li>
<li><p>I want to trigger a job that does something approximately every 100 visits(on average) to my PHP page. The frequency does not have to be extremely accurate, but in the long run, the stats should approach 100 or so.</p></li>
<li><p>I can not write to disk, and can not use database(due to load/performance concern). So I think this has to be done in the PHP code and some how link it to something like time. (something like generate a random number, then match it to the time, if match do the triggered job, if not match, continue).</p></li>
</ol>

<p>I'm open to any ideas or suggestions. Please provide me with the sample code if possible. Thanks!</p>
