votca 2024.2-dev
Loading...
Searching...
No Matches
votca::tools::Random Class Reference

#include <random.h>

Public Member Functions

void init (Index seed)
 
double rand_uniform ()
 
void setMaxInt (Index maxint)
 
Index rand_uniform_int ()
 

Private Attributes

std::mt19937 mt_
 
std::uniform_real_distribution< double > distribution_ {0.0, 1.0}
 
std::uniform_int_distribution< Indexint_distribution_
 

Detailed Description

Definition at line 30 of file random.h.

Member Function Documentation

◆ init()

void votca::tools::Random::init ( Index seed)
inline

Definition at line 32 of file random.h.

◆ rand_uniform()

double votca::tools::Random::rand_uniform ( )
inline

Definition at line 39 of file random.h.

◆ rand_uniform_int()

Index votca::tools::Random::rand_uniform_int ( )
inline

Definition at line 45 of file random.h.

◆ setMaxInt()

void votca::tools::Random::setMaxInt ( Index maxint)
inline

Definition at line 41 of file random.h.

Member Data Documentation

◆ distribution_

std::uniform_real_distribution<double> votca::tools::Random::distribution_ {0.0, 1.0}
private

Definition at line 49 of file random.h.

◆ int_distribution_

std::uniform_int_distribution<Index> votca::tools::Random::int_distribution_
private

Definition at line 50 of file random.h.

◆ mt_

std::mt19937 votca::tools::Random::mt_
private

Definition at line 48 of file random.h.


The documentation for this class was generated from the following file: