Hello,
I am currently writing a card game in Java. My question is when I write the follwoing code below:
Inline Code Example Here
38 // select a random number between 0 and 51
39 int second = randomNumbers.nextInt( NUMBER_OF_CARDS );
Will the program properly generate 52 cards? Should I be using ( NUMBER_OF_CARDS - 1) equals 52 real cards or would it properly generate the 52 cards the way I have it programmed?
Thanks for all the assistance!
Regards,
J-Man