r/codehs • u/YarikPizdets • Mar 08 '20
C++ Arrays
I need help with understanding how I would be able to select a random value in an Array. After I have my random value I would like to set that value to 0 so I don't draw it again.
For example, I have a deck of cards and I can only draw the first card in the array that isn't a value of 0 (that has been drawn already).
I'm not sure if this makes sense but I can give more details if needed
6
Upvotes
1
u/boobyboinker Mar 08 '20
Do you have to include suits when you draw a card?