Ver Mensaje Individual
  #10 (permalink)  
Antiguo 24/11/2011, 09:57
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 15 años
Puntos: 177
Respuesta: Mostrar numero aleatorios

$numeros=array(1,1.5,2,2.5,3,3.5,4);
$cant = sizeof($numeros)-1;
echo $numero_aleatorio = $numeros[rand(0,$cant)];
__________________
la la la