Ho to reuse(iterate) code without event triggers
<p>Can anybody explain as simple as posible (learning js very slow because of lack of time) how to iterate same piece of code. I need to replay sound again and again after a short delay, using Math.Random without using event triggers.</p>

<pre><code>var birdsSing = Math.floor((Math.random() * 10) + 1); 
    if ( birdsSing === 1){
        birds.play();
    }
</code></pre>