generating random number logic changed.
Now generates random number between 1000 and 9999.