openjij
Framework for the Ising model and QUBO.
|
xorshift random generator for c++11 random More...
#include <random.hpp>
Public Types | |
using | result_type = uint_fast32_t |
Public Member Functions | |
unsigned | operator() () |
generate random number | |
Xorshift () | |
Xorshift constructor. | |
Xorshift (unsigned s) | |
Xorshift constructor with seed. | |
Static Public Member Functions | |
static constexpr unsigned | min () |
returns minimum value | |
static constexpr unsigned | max () |
returns maximum value | |
Private Attributes | |
unsigned | x = 123456789u |
unsigned | y = 362436069u |
unsigned | z = 521288629u |
unsigned | w |
xorshift random generator for c++11 random
using openjij::utility::Xorshift::result_type = uint_fast32_t |
|
inline |
|
inlinestaticconstexpr |
returns maximum value
|
inlinestaticconstexpr |
returns minimum value
|
inline |
|
private |
Referenced by operator()(), Xorshift(), and Xorshift().
|
private |
Referenced by operator()().
|
private |
Referenced by operator()().
|
private |
Referenced by operator()().