$result = mysql_query("SELECT * FROM tabella1 where nomi= '$nome' ORDER BY rand() LIMIT 1");