thepossum, on 2021-March-08, 01:51, said:
"A tiny fraction of infinity" is a nonsense phrase. That tiny fraction is still infinite.
Besides we're not talking about infinity. There are only 635 billion possible hands.
Posted 2021-March-08, 17:10
thepossum, on 2021-March-08, 01:51, said:
Posted 2021-March-08, 17:42
blackshoe, on 2021-March-08, 17:10, said:
Posted 2021-March-10, 17:19
IowaST8, on 2021-February-16, 05:59, said:
Posted 2021-March-10, 17:52
jardaholy, on 2021-March-10, 17:19, said:
Posted 2021-March-10, 18:15
jardaholy, on 2021-March-10, 17:19, said:
Posted 2021-March-10, 18:35
jardaholy, on 2021-March-10, 17:19, said:
Posted 2021-March-10, 18:50
smerriman, on 2021-March-10, 18:35, said:
Posted 2021-March-17, 13:01
Posted 2021-March-17, 13:42
Posted 2021-March-17, 15:22
mycroft, on 2021-March-17, 13:42, said:
Posted 2021-March-17, 17:10
Posted 2021-March-18, 21:10
mycroft, on 2021-March-17, 13:42, said:
Posted 2021-March-18, 22:02
gszes, on 2021-March-18, 21:10, said:
Posted 2021-March-19, 05:11
Posted 2021-March-19, 09:37
Posted 2021-March-19, 09:50
mythdoc, on 2021-March-19, 09:37, said:
Posted 2021-March-19, 09:52
Posted 2021-March-19, 09:59
mythdoc, on 2021-March-19, 09:37, said:
Posted 2021-March-19, 10:03
seed = secrets.randbits(SEED_LENGTH) random.seed(seed) for i in range(1, hands_in_set): while not hand[i]: hand_no = random.getrandbits(96) # I guess it's possible to use randrange() here and skip the "if". Assuming randrange is safe (see below) if hand_no < POSSIBLE_HANDS: hand[i] = BigBook.hand(hand_no) BigBook.create_dup_file(hand) BigBook.print_hand_records(seed, hand)
Quote
Posted 2021-March-19, 10:04
hrothgar, on 2021-March-19, 09:50, said: