need help on random generator

added two new method in world but it does not work