Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/11/2006, 19:19
foo
 
Fecha de Ingreso: febrero-2006
Mensajes: 278
Antigüedad: 18 años, 2 meses
Puntos: 0
yo haria algo asi:

function p($i) {
return rand( rand(0, 15), 19 );
}
$limit = 9;
$rnd = array_map('p', array_pad(array(), 9, 0));

$sql = 'SELECT *
FROM tabla
WHERE campo IN (' . join(',', $rnd) . ')
ORDER BY campo DESC
LIMIT ' . $limit;