Ask Question
26 March, 18:48

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.

+4
Answers (1)
  1. 26 March, 22:18
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers