A

Admin • 833.24K Points
Coach

Q. How can you generate random numbers in NumPy?

  • (A) np.generate()
  • (B) np.random()
  • (C) np.rand()
  • (D) np.random.rand()
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.random.rand() generates random numbers in the range [0, 1).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.