compile-time configurable linear congruential generator. More...
#include <arcane/core/random/LinearCongruential.h>
Public Types | |
| typedef IntType | result_type |
Public Member Functions | |
| result_type | min () const |
| result_type | max () const |
| LinearCongruential (IntType x0=1) | |
| void | seed (IntType x0) |
| IntType | getState () const |
| IntType | operator() () |
| bool | validation (IntType x) const |
| bool | operator== (const LinearCongruential &rhs) const |
| void | checkSeed (IntType x) |
Static Public Member Functions | |
| static IntType | apply (IntType x) |
Static Public Attributes | |
| static const bool | has_fixed_range = true |
| static const result_type | min_value = (c == 0 ? 1 : 0) |
| static const result_type | max_value = m - 1 |
| static const IntType | multiplier = a |
| static const IntType | increment = c |
| static const IntType | modulus = m |
Private Attributes | |
| IntType | _x |
compile-time configurable linear congruential generator.
Definition at line 42 of file LinearCongruential.h.
| typedef IntType Arcane::random::LinearCongruential< IntType, a, c, m, val >::result_type |
Definition at line 46 of file LinearCongruential.h.
|
inlineexplicit |
Definition at line 56 of file LinearCongruential.h.
|
inlinestatic |
Definition at line 77 of file LinearCongruential.h.
|
inline |
Definition at line 87 of file LinearCongruential.h.
|
inline |
Definition at line 71 of file LinearCongruential.h.
|
inline |
Definition at line 55 of file LinearCongruential.h.
|
inline |
Definition at line 54 of file LinearCongruential.h.
|
inline |
Definition at line 72 of file LinearCongruential.h.
|
inline |
Definition at line 82 of file LinearCongruential.h.
|
inline |
Definition at line 64 of file LinearCongruential.h.
|
inline |
Definition at line 81 of file LinearCongruential.h.
|
private |
Definition at line 95 of file LinearCongruential.h.
|
static |
Definition at line 47 of file LinearCongruential.h.
|
static |
Definition at line 51 of file LinearCongruential.h.
|
static |
Definition at line 49 of file LinearCongruential.h.
|
static |
Definition at line 48 of file LinearCongruential.h.
|
static |
Definition at line 52 of file LinearCongruential.h.
|
static |
Definition at line 50 of file LinearCongruential.h.