Algorithm to Shuffle a Deck of Cards
Write an algorithm to shuffle an array of 52 integers so that each number has equal probability to be in any of the 52 positions.
Just another WordPress weblog
Archive for the ‘Microsoft’ Category.
Write an algorithm to shuffle an array of 52 integers so that each number has equal probability to be in any of the 52 positions.