☆─────────────────────────────────────☆
NoLimit (天飘荡) 于 (Sun Sep 4 17:58:58 2005) 提到:
Write a method to shuffle a deck of cards.
这道题好象很多人都问,怎么作,是用随机数么?我有点搞不清楚他们
想考什么。
☆─────────────────────────────────────☆
goodbug (Rolling in Taurus) 于 (Sun Sep 4 19:25:31 2005) 提到:
add all cards to a vector
repeat
take a random one from vector, remove it and add to another vector/array
until none left.