只要seed一樣,rand()輸出的亂數序列就會一樣
接下來就讓快排每次都選到最大或最小值就可以了
rand原理參考: https://blog.csdn.net/Cashey1991/article/details/45042291