Ahh, forget random numbers for now - just set the deck so it has all your cards in any order.
Now instead of using a random number to set a card - you take each of your cards in turn and stick them in the deck at random locations, shuffling them really
.
So, say your cards are refered to as images that can be simply stored as a number. Like DECK(52)
DIM Deck(52)
`Firstly make the unsorted deck
For n=0 to 51
Deck(n)=n
Next n
`Now flick through the cards with a fresh randomize seed (without a seed it'd run the same games again and again
Randomize timer()
For n=0 to 51
`Just make sure we're not wasting our time with dupe card shuffles
while place<>n
place=rnd(51)
wend
tempcard=Deck(n)
Deck(n)=Deck(place) : Deck(place)=tempcard
Next n
And that should leave you with 52 unique and shuffled cards.
Van-B
Muhahahahaha.