[mrpt-random]

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

Library mrpt-random

[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

Read also how to import MRPT into your CMake scripts.

Library contents

// namespaces

namespace mrpt::random;

// classes

class mrpt::random::CRandomGenerator;
class mrpt::random::Generator_MT19937;

// global functions

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

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

Global Functions

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

Uniform shuffle a sequence.

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

Uniform shuffle a sequence.