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

Name a random card (without pulling from deck) #28

Open
bizzguy opened this issue Jan 28, 2022 · 0 comments
Open

Name a random card (without pulling from deck) #28

bizzguy opened this issue Jan 28, 2022 · 0 comments

Comments

@bizzguy
Copy link

bizzguy commented Jan 28, 2022

I'm trying to simulate some magic tricks and I need a function that just names a random card without dealing it from the deck. Do you have a suggestion for the best way to do this?

A little more detail

  • create deck
  • shuffle deck
  • deal 1 card from deck
  • name and random card and see if it is the same as the dealt card (this is the function I need)

Thanks

@bizzguy bizzguy changed the title Name a random card Name a random card (without pulling from deck) Jan 28, 2022
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

1 participant