JSFiddle - React, Tailwind, and code Playground

HTML

<div id="div"></div>
<button id="a">random</button>

JavaScript

function num(){
    var number= Math.floor(Math.random() * 230) + 90;
   document.getElementById("div").innerText = number;
}

document.getElementById("a").onclick = num;