php ile yapılışı ise:
<?php
$sayi=rand(1,10);
$sorgu = mysql_fetch_array(mysql_query("Select * From oyunlar where oyun_id = '$sayi'"));
echo $sorgu['oyun_baslik'];
?>