OpenMS
RandomShuffler Class Reference

#include <OpenMS/MATH/MISC/MathFunctions.h>

Collaboration diagram for RandomShuffler:
[legend]

Public Member Functions

 RandomShuffler (int seed)
 
 RandomShuffler (const boost::mt19937_64 &mt_rng)
 
 RandomShuffler ()=default
 
 ~RandomShuffler ()=default
 
template<class RandomAccessIterator >
void portable_random_shuffle (RandomAccessIterator first, RandomAccessIterator last)
 
void seed (uint64_t val)
 

Public Attributes

boost::mt19937_64 rng_
 

Constructor & Destructor Documentation

◆ RandomShuffler() [1/3]

RandomShuffler ( int  seed)
inlineexplicit

◆ RandomShuffler() [2/3]

RandomShuffler ( const boost::mt19937_64 &  mt_rng)
inlineexplicit

◆ RandomShuffler() [3/3]

RandomShuffler ( )
default

◆ ~RandomShuffler()

~RandomShuffler ( )
default

Member Function Documentation

◆ portable_random_shuffle()

void portable_random_shuffle ( RandomAccessIterator  first,
RandomAccessIterator  last 
)
inline

◆ seed()

void seed ( uint64_t  val)
inline

Member Data Documentation

◆ rng_

boost::mt19937_64 rng_