JSFiddle - React, Tailwind, and code Playground
HTML
<h1 id="ident">
Rechenaufgabe
</h1>
<p onclick="zufall()">
Rechenaufgabe
</p>
JavaScript
function zufall() {
var x = Math.floor(Math.random() * 10 + 1);
var y = Math.floor(Math.random() * 10 + 1);
document.getElementById("ident").innerHTML = x + "+" + y + "= ?";
}