Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 71)
71.
What does the NumPy function numpy.random.randint(1, 100, size=(3, 3)) do?
Generates a random integer between 1 and 100.
Creates a 3x3 array with random integers between 1 and 100.
Reshapes an existing array to have dimensions 3x3.
Computes the mean of random integers between 1 and 100.
Answer: Option
Explanation:
The numpy.random.randint() function creates a random integer array of the specified size.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.