You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<title>Generar Números Aleatorios dentro de un Rango</title>
<script type="text/javascript">
function aleatorio() {
var min = parseInt(document.getElementById('min').value);
var max = parseInt(document.getElementById('max').value);
var res = Math.floor(Math.random() * (max - min + 1)) + min;
document.getElementById('resultado').innerHTML = res.toString();
}
</script>
Valor mínimo:
Valor máximo: