generate random numbers in constructor