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

Draw n cards and reshuffle between every request #117

Open
01231 opened this issue May 18, 2022 · 2 comments
Open

Draw n cards and reshuffle between every request #117

01231 opened this issue May 18, 2022 · 2 comments

Comments

@01231
Copy link

01231 commented May 18, 2022

I'd like to draw a card of a shuffle deck, then reshuffle and repeat this process n times. With this approach the probability to draw a card would be 1/52 on every request and would not increase with every drawn card.

I'm using a workaround where I do this manually in a loop, but I though this would be a cool functionality to add...

@crobertsbmw
Copy link
Owner

crobertsbmw commented May 18, 2022 via email

@01231
Copy link
Author

01231 commented May 23, 2022

Indeed! I changed my implementation.

However this would still be a cool feature to have. I was surprised that this functionality wasn't implemented yet, since I though this is a normal use case. As you said you can pull a random number out of 52 in the background. But I think it would be cleaner to access this functionality over the API.

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

No branches or pull requests

2 participants