Bogosort A simple implementation of bogosort in C We can feed it input as follows: 5 22 -56 2 4567 -231 We feed it the total number of elements we wish for it to sort followed by a newline and then the space seperated values.