Anonymous user
Knuth shuffle: Difference between revisions
→{{header|PowerShell}}
PatGarrett (talk | contribs) (→{{header|360 Assembly}}: Section added) |
|||
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) {
|