Hi guys i have a problem. 
I want a video link in a website to change its value each day randomly.

Example: On Monday video link 1 plays. On Tuesday link 2 plays and so on.
I want to do this with Javascript.
I tried something like this:

```
<iframe id="videorotator" style="box-shadow: 5px 5px 5px #888888;" width="307" height="315" src="//www.youtube.com/embed/UZopKnDHti8" frameborder="0" allowfullscreen></iframe>
<script type="text/javascipt">
var videos = ["http//www.youtube.com/embed/UZopKnDHti8","http://www.youtube.com/embed/z8GHNhteHJQ"];
var i=0;

function myLoop () {           
    setTimeout(function () {   
        var yourElement = document.getElementById('videorotator');
        yourElement.setAttribute('src', "="+videos[i]);        
        i++;                
        if (i < 6) {         
            myLoop();         
        }                   
    }, 3000)
}

myLoop();
</script> 

```

JSFiddle here: <http://jsfiddle.net/4aearfvr/>

NOTE1: i set this to 3seconds for the sake of testing
NOTE2: if there is an easier work around please inform me. thanks