Knuth shuffle: Difference between revisions

Line 2,175:
 
=={{header|PowerShell}}==
{{works with|PowerShell|3}}
<lang powershell>$A = 1, 2, 3, 4, 5
Get-Random $A -Count $A.Count</lang>
{{works with|PowerShell|2}} <!-- Get-Random didn't exist in PowerShell 1 -->
<lang powershell>function shuffle ($a) {