<html lang='uk'>
<body>
<h2>JavaScript Math.random()</h2>
<p id="demo"></p>
<script>
let text;
if (Math.random() < 0.5) {
text = "<a href='https://w3schools.com/'>Відвідати W3Schools</a>";
} else {
text = "<a href='https://wwf.org/'>Відвідати WWF</a>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>