Anonymous user
Sorting algorithms/Bogosort: Difference between revisions
Replaced “import math” by “import random”. Removed proc “shuffle” as it is now provided by the module “random”.
m (added Category:Sorting) |
(Replaced “import math” by “import random”. Removed proc “shuffle” as it is now provided by the module “random”.) |
||
Line 2,028:
=={{header|Nim}}==
<lang nim>import
randomize()▼
▲randomize()
proc isSorted[T](s: openarray[T]): bool =
|