Sorting

Getrandom works, need to adapt for randomsort