dejavu
Fast probabilistic symmetry detection.
Loading...
Searching...
No Matches
dejavu::random_source Class Reference

Random number generation. More...

#include <utility.h>

Public Member Functions

 random_source (bool set_true_random, int set_seed)
 
int operator() ()
 

Detailed Description

Random number generation.

Either uses a pseudo random number generator, or random device of OS.

Definition at line 104 of file utility.h.

Constructor & Destructor Documentation

◆ random_source()

dejavu::random_source::random_source ( bool  set_true_random,
int  set_seed 
)
inline

Creates random source with given parameters.

Parameters
set_true_randomuse random device of OS if true, or pseudo random if false
set_seedsets seed of pseudo random number generator

Definition at line 115 of file utility.h.

Member Function Documentation

◆ operator()()

int dejavu::random_source::operator() ( )
inline

Returns a random number

Returns

Definition at line 124 of file utility.h.


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