What would be the best way to build an Ad rotator similar to those we usually see around from <http://fusionads.net> for example.

WordPress have a plugin/widget for adding ads: <https://wordpress.org/plugins/ad-rotator/>

Basically it shows random HTML code every time you refresh the page. 

I was wondering how we can do that with Craft.