class xf::fintech::MT2203

#include "rng.hpp"

Overview

Mersenne Twister to generate uniform random number. Although its period is shorter than MT19937 but also long enough in most cases. It also offers flexibility in parallel computing which may demand indepenency in multiple instances of random number generators.


Methods

seedInitialization

void seedInitialization (ap_uint <W> seed)

Initialization using seed.

Parameters:

seed initialization seed

statusSetup

void statusSetup (
    ap_uint <W> A,
    ap_uint <W> B,
    ap_uint <W> C
    )

Setup status.

Parameters:

A value for configurable parameter A
B value for configurable parameter B
C value for configurable parameter C

MT2203

MT2203 overload (1)

MT2203 ()

Default constructor.

MT2203 overload (2)

MT2203 (ap_uint <W> seed)

Constructor with seed.

Parameters:

seed initialization seed

statusSetup

void statusSetup (ap_uint <W> data [N])

Setup status.

Parameters:

data initialization data for mt and mt_1