View Single Post
  #2  
Old 04-13-2016, 02:04 PM
galo galo is offline
Junior Member
 
Join Date: Jan 2016
Posts: 7
Default Re: Question 7; calculating slope in Python

How are you generating your random points? If you use numpy to generate the coordinates of one point, it shouldn't happen. Try this:
Code:
x, y = np.random.uniform(-1,1,2)
Reply With Quote