Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use np.random.Generator for rng #694

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Use np.random.Generator for rng #694

merged 3 commits into from
Sep 29, 2023

Conversation

benfred
Copy link
Owner

@benfred benfred commented Sep 29, 2023

Replace RandomState with random.Generator for generating random numbers. The RandomState is marked as a legacy api, and will have no further improvements made to it. The Generator API also gives us some extra features, like the ability to specify dtypes rather than converting after the fact etc.

Replace RandomState with random.Generator for generating random numbers.
The RandomState is marked as a legacy api, and will have no further improvements
made to it. The Generator API also gives us some extra features, like
the ability to specify dtypes rather than converting after the fact etc.
@benfred benfred merged commit c62b23f into main Sep 29, 2023
41 checks passed
@benfred benfred deleted the random_generator branch September 29, 2023 19:00
NiallBrickell pushed a commit to NiallBrickell/implicit that referenced this pull request Feb 6, 2024
* Use np.random.Generator for rng

Replace RandomState with random.Generator for generating random numbers.
The RandomState is marked as a legacy api, and will have no further improvements
made to it. The Generator API also gives us some extra features, like
the ability to specify dtypes rather than converting after the fact etc.

* spelling

* windows fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant