()
| 137 | |
| 138 | |
| 139 | def generate_random_hand(): |
| 140 | play, oppo = randrange(len(SORTED_HANDS)), randrange(len(SORTED_HANDS)) |
| 141 | expected = ["Loss", "Tie", "Win"][(play >= oppo) + (play > oppo)] |
| 142 | hand, other = SORTED_HANDS[play], SORTED_HANDS[oppo] |
| 143 | return hand, other, expected |
| 144 | |
| 145 | |
| 146 | def generate_random_hands(number_of_hands: int = 100): |
no outgoing calls
no test coverage detected