Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/08/2011, 09:39
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 15 años, 3 meses
Puntos: 334
Respuesta: Meter en array numeros aleatorios sin repetir

un algoritmo mas simple podria ser

Código PHP:
<?php 
$rand 
range(140); 
shuffle($rand); 
foreach (
$rand as $val) { 
    echo 
$val '<br />'
}
estúdialo haber si te sirve para que tengas una idea..

saludos.

www.php.net/range
www.php.net/shuffle
__________________
More about me...
~ @rhyudek1
~ Github