Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/08/2002, 14:12
chivi
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 889
Antigüedad: 22 años, 4 meses
Puntos: 4
Re: Numero aleatorio en PHP

En efecto, se hace con "RAND()"
Un Ejemplo:
<?
$numero = rand(1,9);
echo $numero;
?>
Eso te generará un número aleatorio del entre el 1 y el 9.

Saludos!
PD: Revisad los post anteriores. Ésto se vió hace 3 días escasos.

<html><center><embed src="http://www.iespana.es/redmaestro/banner.swf" height=75 width=500>
</embed></center></html>