Algo así valdría:
Código:
<?php
srand((double)microtime()*1000000);
$num = rand(0,1);
?>
Ahí tienes un número aleatorio entre 0 y 1
Salu2.Ferdy
<hr />
Usuario registrado de Linux #241564
<a href="http://www.ferdyx.org">
FerdyX.org</a> -
Web Open Source