Creates a random DOM element.
var randDom = require('rand-dom');
randDom.elm.innerHTML = `I'm a ${randDom}.tag`;
// Can decide your logic based on the tag.
document.body.appendChild(randDom.elm);
Basically it returns you an object that contains:
{
elm // Random element that was created.
tag // HTML Tag
}
$ npm install --save rand-dom