Return True a certain percentage of the time. :param prob: probability of returning True :type prob: int :returns: True prob percent of the time, False otherwise
(self, prob)
| 79 | return self.randGenNum(0, max - 1) |
| 80 | |
| 81 | def probibility(self, prob): |
| 82 | """ |
| 83 | Return True a certain percentage of the time. |
| 84 | |
| 85 | :param prob: probability of returning True |
| 86 | :type prob: int |
| 87 | :returns: True prob percent of the time, False otherwise |
| 88 | """ |
| 89 | randNum = self.randGenNum(0, 100) |
| 90 | |
| 91 | return randNum <= prob |
| 92 | |
| 93 | def randSelect(self, seq): |
| 94 | """ |
no test coverage detected