app/models/choice.py
def generate(self, seed=None):
        """
        Returns a choice or a sub_choice
        """
        if len(self.sub_choices.all()):
            num = seed() % len(self.sub_choices.all())
            return self.sub_choices.all()[num]
        return self

        Returns a choice or a sub_choice
        
Returns a choice or a sub_choice
Returns a choice or a sub_choice
def generate(self, seed=None):
        if len(self.sub_choices.all()):
            num = seed() % len(self.sub_choices.all())
            return self.sub_choices.all()[num]
        return self
def generate ( self , seed = None ) : if len ( self . sub_choices . all ( ) ) : num = seed ( ) % len ( self . sub_choices . all ( ) ) return self . sub_choices . all ( ) [ num ] return self
Returns a choice or a sub_choice
Returns a choice or a sub_choice
"""
        Returns a choice or a sub_choice
        """
self
seed