Please provide an algorithm for randomised sort?

Please provide an algorithm for randomised sort?
we have been taught only quicksort?

Randomized Quick Sort randomly selects a pivot element, after selecting pivot standard procedure is to be followed as quick sort.

Here is the code of quick sort. suggest changes have to do to make it randomised sort…https://ide.codingblocks.com/s/476862

im not able to do it so please help as shown in above reply

the code is same you can chnage pivot to any position acc to your convenience
could be
int pivot = ar[hi];
or int pivot = ar[mid+1]; or any random location