Exemplo n.º 1
0
    def generate_random_numbers(self):
        """
        The method generates a random array for making the choice of
        the alternative.

        Inputs:
        None
        """
        #random.seed(seed=self.seed)
        #err = random.random((3,1))
        #f = open('test_res', 'a')
        #f.write('probability - %s' %self.seed)
        #f.write(str(list(err[:3,:])))
        #f.write('\n')
        #f.close()

        dist = RandomDistribution(self.seed)
        rand_numbers = dist.return_random_variables(self.num_agents)
        return rand_numbers
 def generate_random_numbers(self):
     """
     The method generates a random array for making the choice of 
     the alternative.
     
     Inputs:
     None
     """
     #random.seed(seed=self.seed)
     #err = random.random((3,1))
     #f = open('test_res', 'a')
     #f.write('probability - %s' %self.seed)
     #f.write(str(list(err[:3,:])))
     #f.write('\n')
     #f.close()
     
     dist = RandomDistribution(self.seed)
     rand_numbers = dist.return_random_variables(self.num_agents)
     return rand_numbers