var videoArray = new Array();
videoArray[0]= 'url';
videoArray[1]= 'url';
videoArray[2]= 'url';
...
var rnd = Math.floor(Math.random()*(videoArray.length));
document.write('<video width="320" height="240" controls><source src="'+videoArray[rnd]+'" type="video/mp4"></video>'); // video
document.write('<iframe width="560" height="315" src="'+videoArray[rnd]+'" frameborder="0" allowfullscreen></iframe>'); // youtube