hola me tome el tiempo para prepararte en javscript, es fácil implementar, en un widget html :
Insertar CODE, HTML o PHP:
<script type="text/javascript">
var images = [],
index = 0;
images[0] = "<a href = 'https://forobeta.com/'><img src='https://forobeta.com/uploads/forobeta-logo.png' alt='forobeta'></a>";
images[1] = "<a href = 'https://google.com'><img src='https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png' alt='Goole'></a>";
images[2] = "<a href = 'https://facebook.com/'><img src='https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQ9fMcbY--cviHyCki2X93O77Tlu4NCxT8cTFNfWHv9Sg2CxSLz' alt='Facebook'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>