A

Admin • 832.27K Points
Coach

Q. Which function generates random floating-point numbers in NumPy?

  • (A) np.random.rand()
  • (B) np.random.randint()
  • (C) np.random.random_integers()
  • (D) np.random.choice()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.random.rand() returns an array of random floats sampled uniformly from the interval [0, 1).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.