Esempio n. 1
0
 def _gen_random_rider(self):
     r_id = randint(0, 100000)
     while r_id in self.rider_ids:
         r_id = randint(0, 100000)
     self.rider_ids.add(r_id)
     rider = Rider(r_id)
     rider.gen_stats()
     return rider
Esempio n. 2
0
 def _gen_random_rider(self):
     r_id = randint(0, 100000)
     while r_id in self.rider_ids:
         r_id = randint(0, 100000)
     self.rider_ids.add(r_id)
     rider = Rider(r_id)
     rider.gen_stats()
     return rider
Esempio n. 3
0
 def _gen_random_rider(self):
     # r_id = randint(0, 100000)
     # while r_id in self.rider_ids:
     #     r_id = randint(0, 100000)
     self.rider_ids.add(self.rider_id_init)
     rider = Rider(self.rider_id_init, self.health_check_init)
     self.rider_id_init += 1
     self.health_check_init += 1
     rider.gen_stats(e_level=randint(5,10))
     return rider