Ask 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 () submodule of numpy. random for this question.

+4
Answers (1)
  1. 26 April, 03:24
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers