I have the problem that rand.randrange won't work. From searching the internet I found that this is from a different file that is named random. If I do
print(random, type(random))
then I get the following result
<built-in method random_sample of mtrand.RandomState object at 0x111f70b40> <class 'builtin_function_or_method'>
My imports are the following:
import matplotlib.pyplot as plt import random as rand from pylab import *
I use a mac and python 3.7.1. Could somebody tell me what I need to do and how to fix this issue?
Sebastiaan
Aucun commentaire:
Enregistrer un commentaire