Ver Mensaje Individual
  #7 (permalink)  
Antiguo 26/10/2010, 04:42
Avatar de zerokilled
zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: Firefox y Math.random()

buscando en ECMA262 5th edition por la palabra seed no me dio ningun resultado. esto es lo unico que dice acerca de random.
Cita:
Iniciado por ECMA262
15.8.2.14 random ( )
Returns a Number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or strategy. This function takes no arguments.
sin embargo, en otra web [que parece tiene menos credibilidad porque google me lo marca como sitio inseguro] el autor clama lo siguiente.
Cita:
Iniciado por http://codepunk.hardwar.org.uk/ajs13.htm
Seeding

You can use a plain "Math.random()" every time you need a random number. In practice, however, the method is usually given a "seed number" in the parentheses. This is the number that is run through the randomization algorithm:

Math.random(8)
pudiera ser cierto, pero seguramente sera en alguna implementacion especifica. por ejemplo, que solo funcione en la implementacion de iexplorer.
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.