我有个问题,像这种
bool cmp(int a,int b){if(rand()%2){return a<b}else return a>b}
假设这个rand是真的完全随机
像这种sort会不会结束不了?
如果结束的了,是不是真的随机排序?