Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Lecture 11 - Random variables / Explicit return in __init__ method

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