STL: random_shuffle

random_shuffle

Rearranges a sequence of N elements in a range into one of N! possible arrangements selected at random.

复制代码
template<class RandomAccessIterator> 
   void random_shuffle( 
      RandomAccessIterator _First,  
      RandomAccessIterator _Last 
   ); 
template<class RandomAccessIterator, class RandomNumberGenerator> 
   void random_shuffle( 
      RandomAccessIterator _First,  
      RandomAccessIterator _Last,  
      RandomNumberGenerator& _Rand 
   );
复制代码

 

posted @   freewater  阅读(604)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示