random_shuffle的作用是打乱已经排好序的容器,例如vector。其用法如下所示。 vector<int> nums(10); random_shuffle(nums.begin(), nums.end());