mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-14 12:09:12 -05:00
431 B
431 B
title, localeTitle
| title | localeTitle |
|---|---|
| Math Random | Matemáticas Aleatorias |
Matemáticas Aleatorias
Math.random() devuelve un número entre 0 (incluido) y 1 (exclusivo).
Sintaxis
Math.random()
Ejemplo
function randomInRange(min, max) {
return Math.random() * (max - min) + min;
}