some changes in tryRandom file