JSFiddle - React, Tailwind, and code Playground

by Graham Fairweather

HTML

<div id="result"></div>

JavaScript

var randVal = new Uint8Array(1);

window.crypto.getRandomValues(randVal);

document.getElementById("result").textContent = randVal[0] / 255;