Skip to content

Why is py5.random_sample()'s interface different (the replace=True default) from Python's random.sample()? #684

Closed Answered by hx2A
villares asked this question in Q&A
Discussion options

You must be logged in to vote

Didn't this derive from random_choice()? I recall that one came first but then we wanted something that would return a list and could return more than one item.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@villares
Comment options

villares Jul 28, 2025
Collaborator Author

Answer selected by villares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants