Original: A simple example is randomized quicksort , where the pivot is chosen randomly , but the result is always sorted .
Simplified: Most often , a Las Vegas algorithm is used to pick the pivot randomly .