QUOTE(Amadeus @ 26 Oct, 2006 - 01:50 PM)

There are many ways to simulate a shuffle...you could have an array of cards, then run through that element by element...for each element, generate a random number between 0 and 51, put the card in that element of a second array. Or, using one array, for each element, generate a random number, then switch that element with the element at the random number position, do that a few times.
You may want to check this out as well...it is a card deck implementation.
http://archive.devx.com/sourcebank/directo...wFilter=showAllThanks for the link, i did some research and found a few others, and I am leaning toward generating a random number and replacing that number with another element from the array. Thanks again for your suggestions