Randomly generate 1,000 pets, from the choices “dog,” “cat,” “hamster,” and “gold‐
fish,” with equal probability of each being chosen. Display the first few values of the
resultant variable, and count the number of each type of pet. [5]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here