Scippy

SoPlex

Sequential object-oriented simPlex

random.h File Reference

Random numbers. More...

#include <assert.h>
#include <stdint.h>
#include <algorithm>

Go to the source code of this file.

Classes

class  Random
 Random numbers.Class Random provides random Real variables, i.e. a value variable that gives another value each time it is accessed. It may be used just like an ordinary Real by means of an overloaded cast operator Real()%. More...
 

Namespaces

 soplex
 Everything should be within this namespace.
 

Macros

#define SOPLEX_DEFAULT_LIN   UINT32_C(123456789)
 
#define SOPLEX_DEFAULT_XOR   UINT32_C(362436000)
 
#define SOPLEX_DEFAULT_MWC   UINT32_C(521288629)
 
#define SOPLEX_DEFAULT_CST   UINT32_C(7654321)
 
#define SOPLEX_RSTEP   UINT64_C(1103515245)
 
#define SOPLEX_RADD   UINT64_C(12345)
 

Detailed Description

Random numbers.

Definition in file random.h.

Macro Definition Documentation

◆ SOPLEX_DEFAULT_CST

#define SOPLEX_DEFAULT_CST   UINT32_C(7654321)

Definition at line 42 of file random.h.

Referenced by Random::setSeed().

◆ SOPLEX_DEFAULT_LIN

#define SOPLEX_DEFAULT_LIN   UINT32_C(123456789)

Definition at line 39 of file random.h.

Referenced by Random::setSeed().

◆ SOPLEX_DEFAULT_MWC

#define SOPLEX_DEFAULT_MWC   UINT32_C(521288629)

Definition at line 41 of file random.h.

Referenced by Random::setSeed().

◆ SOPLEX_DEFAULT_XOR

#define SOPLEX_DEFAULT_XOR   UINT32_C(362436000)

Definition at line 40 of file random.h.

Referenced by Random::setSeed().

◆ SOPLEX_RADD

#define SOPLEX_RADD   UINT64_C(12345)

Definition at line 46 of file random.h.

Referenced by Random::next_random().

◆ SOPLEX_RSTEP

#define SOPLEX_RSTEP   UINT64_C(1103515245)

Definition at line 45 of file random.h.

Referenced by Random::next_random().