Write a method to shuffle a deck of cards in VB.NET

前端 未结 4 1840
栀梦
栀梦 2021-01-06 11:57

I have a standard deck of 52 cards is represented in an array. Each card is represented as an integer. I wrote the below function to shuffle the cards. Does the code below l

4条回答
  •  臣服心动
    2021-01-06 12:13

    Take a look at Jeff Atwood's blog post on the subject.

    http://www.codinghorror.com/blog/2007/12/shuffling.html

提交回复
热议问题