|
-
Oct 5th, 2002, 06:25 PM
#1
Thread Starter
Hyperactive Member
Card game
i am making a card game with C++. have an array: cards[52].
i need it to go through and assign a number of 1 to 52 to cards[1] to cards[52]. I need each number to be used only once. So it simulates a shuffled deck of cards without jokers. Ex:
cards[1] = 25
cards[2] = 13
cards[3] = 17
cards[4] = 40
...
each one needs a different number 1 to 52.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|