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 python's implementations for random_weighted_choice #4523

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jonathanmetzman
Copy link
Collaborator

@jonathanmetzman jonathanmetzman commented Dec 18, 2024

The existing implementation looked buggy. It was fine but let's use
Python's stdlib implementation so we can be more sure and reduce complexity.

The existing implementation looked buggy. It was fine but let's use
Python's stdlib implementation so we can be more sure.
Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jonathanmetzman
Copy link
Collaborator Author

jonathanmetzman commented Dec 26, 2024

Do we think it makes sense to delete the tests?

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

Successfully merging this pull request may close these issues.

2 participants