JSFiddle - React, Tailwind, and code Playground
by Yeah
HTML
<p id="result"></p>
JavaScript
Array.prototype.shuffle = Array.prototype.shuffle || function () {
for (var i = this.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = this[i];
this[i] = this[j];
this[j] = temp;
}
return this;
}
document.getElementById('result').innerHTML = (['akobzar', 'vvatulya', 'izubok', 'ybogdanov', 'vgryshko'].shuffle().join(', '));