Hi All,
Awesome website and very informative lectures that I'm enjoying a lot.
I have a question about lecture 11 - Random Variables code:
class DiscreteRandomVariable:
def __init__(self, a=0, b=1):
self.variableType = ""
self.low = a
self.high = b
return
def draw(self, numberOfSamples):
samples = np.random.random_integers(self.low, self.high, numberOfSamples)
return samples
I'm wondering why is there explicit return in the init method? Does it perform any function?
Thanks,
M