Advertisement
Guest User

funciones matematicas

a guest
May 6th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Generar un número aleatorio
  2. var aleatorio = Math.random();
  3. alert(aleatorio);
  4. Obtener el valor máximo de una serie de valores
  5. var valorMaximo = Math.max(20,15,10,3,28,64,74,13,76);
  6. alert("El valor maximo es:"+valorMaximo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement