Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces | Functions
[mrpt-random]

Detailed Description

Random number generator C++ library support uniform, Gaussian, multivariable distributions.

Back to list of all libraries | See all modules

Library <tt>mrpt-random</tt>

[New in MRPT 2.0.0]

This library is part of MRPT but it's pure C++11 and has no other dependencies. It can be installed in Debian-based systems with:

    sudo apt install libmrpt-random-dev

Classes

class  mrpt::random::CRandomGenerator
 A thred-safe pseudo random number generator, based on an internal MT19937 randomness generator. More...
 

Namespaces

 mrpt::random
 A namespace of pseudo-random numbers generators of diferent distributions.
 

Functions

template<class RandomIt , class URBG >
void mrpt::random::shuffle (RandomIt first, RandomIt last, URBG &&g)
 Uniform shuffle a sequence. More...
 
template<class RandomIt >
void mrpt::random::shuffle (RandomIt first, RandomIt last)
 Uniform shuffle a sequence. More...
 

Function Documentation

◆ shuffle() [1/2]

template<class RandomIt >
void mrpt::random::shuffle ( RandomIt  first,
RandomIt  last 
)

Uniform shuffle a sequence.

Definition at line 38 of file random_shuffle.h.

References mrpt::random::shuffle().

◆ shuffle() [2/2]

template<class RandomIt , class URBG >
void mrpt::random::shuffle ( RandomIt  first,
RandomIt  last,
URBG &&  g 
)



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST