Deal() returns a value 0-51.
randomC() takes the RANDOMCARD and assigns it a card VALUE based on a case switch statement.
playerC are the cards, I have an array set up with 0-51 assigning a different card in the deck.
a & randomCard must be equal numbers so I assign the correct card, that is why I do not simply code a = Deal().
If document.write is so obsolete why not inform me of the appropriate code?
Thank you, I think.