Changed minimum boundary from 0 to 1000 to avoid 2 digit condition and to generate only 4 digits.