Kanze
08-19-2002, 02:21 AM
is there a way to create ramdom card dealings but also follow the rules of a deck
|
||||
need help with cardsKanze 08-19-2002, 02:21 AM is there a way to create ramdom card dealings but also follow the rules of a deck Vladdy 08-19-2002, 02:32 AM Ther are a few solutions.... - you can create an array that represents the deck and then in a for loop swap two random indexes for for awhile.... - you can create two arrays. Fill first one with the ordered deck. while the first array has elements pick a random one and move it two the last element in the second array once done second array would have a shuffled deck..... Kanze 08-19-2002, 03:36 AM what would be the code for the first one Vladdy 08-19-2002, 03:43 AM Wanna hire me to do the code for you???;) ;) ;) |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum