Use NumPy random generator to do the following tasks:
Set the seed to be 430.
Randomly generate 100 numeric values from the Standard Normal distribution, store them in a NumPy array called nums.
Compute the proportion of the randomly generated values that are greater than 0, store the result in a variable called prop.
Note: The use of loops is not allowed in this exercise.
Your code snippet should define the following variables:
Name Type
Description
nums NumPy array
An array of 100 randomly generated numbers from the Standard Normal distribution
prop float
Proportion of the randomly generated numbers that are greater than 0
user_code.py:
# define new NumPy array