11
Quick, more simple fix here...
In the line:
$result = $db->query("SELECT * FROM ".$db->prefix("rmmf_works")." ORDER BY id_w DESC LIMIT 0,$options[0]");
You should be able to change the
ORDER BY id_w DESC
to simply
ORDER BY RAND()
Hope that works, enjoy!