Fix scripts/random-entries.php

Fix #78