Codice PHP:
$SQL "SELECT utente FROM tuatabella ORDER BY RAND() LIMIT 2";
$result mysql_query($SQL);
while (
$rs mysql_fetch_array($result)) {
   echo 
$rs['utente'];