Alright, so here i have code for a program that firstly, makes a list of random numbers (52) then sorts them in ascending order. At the same time, i have a card deck. Everytime the numbers are sorted, it also changes the corresponding card in the deck. This simulates shuffling of cards. Now, i want to deal these cards out into 4 hands, but i need like a formula or something to get it to not deal out the same cards everytime. LET ME KNOW WHAT I COULD DO! Here is the code for the DEALING part. Now it only deals from 1 to 4 but how do i get it to go on to 13?
CODE
Sub deal()
dim i as integer
Dim j As Integer
For j = 1 To 13
For i = 1 To 4
hand1(j) = carddeck(j)
hand2(j) = carddeck(j)
hand3(j) = carddeck(j)
hand4(j) = carddeck(j)
Next
Next
End Sub
End Module
This post has been edited by midofimasr: 19 Nov, 2008 - 02:39 PM