some changes in file tryRandom.c