OR-Tools  8.2
ACMRandom

Detailed Description

Definition at line 26 of file random.h.

Public Types

typedef int64 difference_type
 
typedef uint64 result_type
 

Public Member Functions

 ACMRandom (int32 seed)
 
uint32 Next ()
 
uint64 Next64 ()
 
uint64 Rand64 ()
 
uint64 operator() ()
 
uint32 Uniform (uint32 n)
 
uint64 operator() (uint64 val_max)
 
void Reset (int32 seed)
 

Static Public Member Functions

static int32 HostnamePidTimeSeed ()
 
static int32 DeterministicSeed ()
 
static constexpr result_type min ()
 
static constexpr result_type max ()
 

Member Typedef Documentation

◆ difference_type

Definition at line 46 of file random.h.

◆ result_type

Definition at line 47 of file random.h.

Constructor & Destructor Documentation

◆ ACMRandom()

ACMRandom ( int32  seed)
inlineexplicit

Definition at line 28 of file random.h.

Member Function Documentation

◆ DeterministicSeed()

int32 DeterministicSeed ( )
static

Definition at line 92 of file random.cc.

◆ HostnamePidTimeSeed()

int32 HostnamePidTimeSeed ( )
static

Definition at line 58 of file random.cc.

◆ max()

static constexpr result_type max ( )
inlinestaticconstexpr

Definition at line 49 of file random.h.

◆ min()

static constexpr result_type min ( )
inlinestaticconstexpr

Definition at line 48 of file random.h.

◆ Next()

uint32 Next ( )

Definition at line 36 of file random.cc.

◆ Next64()

uint64 Next64 ( )

Definition at line 42 of file random.cc.

◆ operator()() [1/2]

uint64 operator() ( )
inline

Definition at line 34 of file random.h.

◆ operator()() [2/2]

uint64 operator() ( uint64  val_max)

Definition at line 46 of file random.cc.

◆ Rand64()

uint64 Rand64 ( )
inline

Definition at line 33 of file random.h.

◆ Reset()

void Reset ( int32  seed)
inline

Definition at line 41 of file random.h.

◆ Uniform()

uint32 Uniform ( uint32  n)

Definition at line 40 of file random.cc.


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