Sorting algorithms/Bogosort: Difference between revisions
Content deleted Content added
m →modified bogo sort: aligned a comment. |
Walterpachl (talk | contribs) →{{header|PL/I}}: don't swap an element with itself (improvement taken from REXX) |
||
Line 1,546:
Iterate;
u=rand(1,n);
Do Until v^=
v=rand(1,n);
End;
Temp=a(u);
a(u)=a(v);
Line 1,589 ⟶ 1,591:
1.0
333.0
444.4 </pre>
=={{header|PowerShell}}==
|