Created
April 12, 2022 15:09
-
-
Save mjam03/0cdd8556e0a3848c635d6075de053336 to your computer and use it in GitHub Desktop.
random_sampling_with_scipy_and_numpy_part_ii2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __init__(self, seed=None): | |
if seed is None: | |
bit_generator = _MT19937() | |
elif not hasattr(seed, 'capsule'): | |
bit_generator = _MT19937() | |
bit_generator._legacy_seeding(seed) | |
else: | |
bit_generator = seed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment