Ask Question
28 November, 04:32

Generate an array x that has n=100 random numbers that are uniformly distributed over the interval [0,1). Look up how to use the uniform () submodule of numpy. random for this question.

+5
Answers (1)
  1. 28 November, 05:26
    0
    Answer: np . random . uniform ( 0, 1, 100)

    Explanation:

    import numpy as np

    #pass the random uniform generated array into x

    x = np. random. uniform (low, high, size)

    #here low = 0, high = 1, size = 100

    x = no. random. uniform (0,1,100)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Generate an array x that has n=100 random numbers that are uniformly distributed over the interval [0,1). Look up how to use the uniform () ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers