bogosort


See On Github

Data

Contributor

Generic placeholder thumbnail

by jcla1

in python

Source Code

from random import shuffle

def bogosort(arr):
    while not sorted(arr) == arr:
        shuffle(arr)
    return arr