I *heart* PowerShell

by Oct 17, 2008

When I saw the example in I *heart* python , and the remark about PowerShell in it, I could not resist doing the same exercise in PowerShell :

$codes = @{} # some existing coded for testing and make sure we have at least one duplicate $existingCodes = ' poipoi ' , ' blinky ' $codes [ ' poipoi ' ] = 0 # Create new codes $r = new-object random ( 1 .. 500 ) |% { $tmp = '' 1 .. 6 |% { $tmp += [ char… Read the full text.