all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
Bogosort[x_List] := Block[{t=x},While[!OrderedQ[t],t=RandomSample[x]]; t]
|
||||
|
||||
Bogosort[{1, 2, 6, 4, 0, -1, Pi, 3, 5}]
|
||||
=> {-1, 0, 1, 2, 3, Pi, 4, 5, 6}
|
||||
Loading…
Add table
Add a link
Reference in a new issue