Jun-17-2020, 06:54 PM
From the book...
We'll start by creating a random set of 10 points on a two-dimensional plane. Using the standard convention, we'll arrange these in a 10×2 array
We'll start by creating a random set of 10 points on a two-dimensional plane. Using the standard convention, we'll arrange these in a 10×2 array
import numpy as np X = rand.rand(10, 2) print(X)
Error:---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-4-ac81983deccd> in <module>
1 import numpy as np
2 import random
----> 3 X = rand.rand(10, 2)
4 print(X)
NameError: name 'rand' is not defined
Any idea how to define this second .rand
?