Helper function to make an array of random numbers having shape (n, ) with each number distributed Uniform(vmin, vmax).
(n, vmin, vmax)
| 14 | |
| 15 | |
| 16 | def randrange(n, vmin, vmax): |
| 17 | """ |
| 18 | Helper function to make an array of random numbers having shape (n, ) |
| 19 | with each number distributed Uniform(vmin, vmax). |
| 20 | """ |
| 21 | return (vmax - vmin)*np.random.rand(n) + vmin |
| 22 | |
| 23 | fig = plt.figure() |
| 24 | ax = fig.add_subplot(projection='3d') |
no outgoing calls
no test coverage detected
searching dependent graphs…