components to generate just one number alone and an array of random numbers