'Selective' Random Numbers

BlitzMax Forums/BlitzMax Beginners Area/'Selective' Random Numbers

Matt Vinyl(Posted 2007) [#1]
Evening all,

I have two sets of cards (104 cards in total). How could I randomly distribute these cards within a 104-unit array?
So, for example:

Array unit 80=Ace of Spades
Array unit 13=Ace of Spades
Array unit 22=2 of Spades
Array unit 73=2 of Spades

and so on...

I hope this makes sense...! ;)


Perturbatio(Posted 2007) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=54021


Matt Vinyl(Posted 2007) [#3]
Ah, should have perused that forum too...

Cheers!
M