AlexanderZvyagin / MonteCarlo-SDK

0 stars 0 forks source link

Update random number generator initialization. #3

Open AlexanderZvyagin opened 11 months ago

AlexanderZvyagin commented 11 months ago

Right now it is done with RandomSeed variable of type int, which needs to be changed into vector<int>.

AlexanderZvyagin commented 11 months ago

or maybe into

Model::SetRandomNumberGenerator(std::string name, std::vector<unsigned long long int> data)

if data is not long enough, complement it with randomly generated data.

        union RandomGeneratorState {
            curandStateXORWOW               g0;
            curandStateSobol64_t            g1;
            curandStateScrambledSobol32_t   g2;
            curandStateScrambledSobol64_t   g3;
            curandStateMRG32k3a_t           g4;
            curandStatePhilox4_32_10_t      g5;
        } rnd;

data.size() required for different generators: