Suppose you are given a list of numbers and a function random(0,1) that returns a random integer between 0 and 1 . Write an algorithm to sort the given list based on the output of the function random(0,1) . Assume that this function is called once for every number on the list.
void sortArray(float input[], int length) |