Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/07/2007, 11:25
roceth
 
Fecha de Ingreso: mayo-2006
Mensajes: 77
Antigüedad: 18 años
Puntos: 1
Re: Desordenar una matriz

Prueba esto:

Cita:
function que() {
return (Math.random()>.5) ? 1 : 0;
}
tuArray.sort(que);
Un saludo