@rand_row = $dbh->selectrow_array('SELECT some,rows, rand() as orderno FROM your_table ORDER BY orderno LIMIT 1');