bogosort


See On Github

Data

Contributor

Generic placeholder thumbnail

by jcla1

in ruby

Source Code

def bogosort(arr)
    while arr != arr.sort
        arr = arr.shuffle
    end
    return arr
end