JSFiddle - React, Tailwind, and code Playground
HTML
<p></p>
JavaScript
var x = 10;
var arr = [];
for(y=0; y<x; y++){
arr.push(y);
}
function shuffle(o){
for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};
$('p').html(shuffle(arr).join(''));