Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
random.h File Reference

The pseudorandom number generation and sampling module. More...

#include <cstdint>
#include <cstdlib>
#include <cmath>
#include <mutex>
#include "../core/common.h"
#include <random>

Go to the source code of this file.

Classes

class  chebyshev::random::random_source
 A source of pseudorandom numbers. More...
 
class  chebyshev::random::random_settings
 Settings for the random module. More...
 
class  chebyshev::random::random_context
 context. More...
 

Namespaces

namespace  chebyshev
 General namespace of the framework.
 
namespace  chebyshev::random
 Pseudorandom number generation and sampling module.
 

Typedefs

using random_engine = std::mt19937
 Define the CH_CUSTOM_RND macro and a type random_engine to use a custom random number generator.
 

Detailed Description

The pseudorandom number generation and sampling module.

Typedef Documentation

◆ random_engine

using random_engine = std::mt19937

Define the CH_CUSTOM_RND macro and a type random_engine to use a custom random number generator.

By default, the standard Mersenne Twister is used.