JSFiddle - React, Tailwind, and code Playground
by Nick Hulea
HTML
<a href="#" onclick="randomSite();">Random</a>
JavaScript
var sites = [
'http://www.google.com',
'http://www.stackoverflow.com',
'http://www.example.com',
'http://www.youtube.com'
];
function randomSite() {
var i = parseInt(Math.random() * sites.length);
alert(sites[i])
location.href = sites[i];
}