coding needed for randomising.
does anyone here know the code for this problem?
i need to randomly generate 8 cards from a deck of 52 cards using a 2 dimentional array. it then has to automatically put those 8 numbers into 8 seperate text boxes. it then has to compare the first 4 cards to the second 4 cards and display a message box if two or more pairs are found.
thanks all so much.
Shei
Re: coding needed for randomising.
Well, generating the random number is simple:
All you need to do is repeat that a x number of times (Say in a For...Next loop) and then use the generated numbers to grab the data from the array :)
Cheers,
RyanJ