Update weighted_random.php