Sorting algorithms/Bogosort: Difference between revisions

m
(c)
Line 464:
=={{header|Oberon-2}}==
{{Works with|Oxford Oberon-2 Compiler}}
<prelang oberon2>MODULE Bogo;
 
IMPORT Out, Random;
Line 514:
END;
Out.Ln;
END Bogo.</prelang>
 
Init initializes the array as 1 thru 10, then it is shuffled, and then the while loop continually shuffles until Sorted returns true.