闅忔満閫夋嫨涓€涓?checkfile
(self)
| 1303 | |
| 1304 | def select_random_checkfile(self) -> Optional[Dict[str, Any]]: |
| 1305 | """闅忔満閫夋嫨涓€涓?checkfile""" |
| 1306 | if not self.checkfiles: |
| 1307 | return None |
| 1308 | return random.choice(self.checkfiles) |
| 1309 | |
| 1310 | def should_drift(self, probability: float = 0.5) -> bool: |
| 1311 | """鍒ゆ柇鏄惁鍙戠敓婕傜Щ""" |
| 1312 | return random.random() < probability |