// // File: eml_rand_mt19937ar_stateful.cpp // // MATLAB Coder version : 5.2 // C/C++ source code generated on : 04-Mar-2023 17:44:30 // // Include Files #include "fun7_eml_rand_mt19937ar_stateful.h" #include "fun7_DRFMRF_data.h" #include // Function Definitions // // Arguments : void // Return Type : void // void eml_rand_mt19937ar_stateful_init() { unsigned int r; std::memset(&state[0], 0, 625U * sizeof(unsigned int)); r = 5489U; state[0] = 5489U; for (int mti{0}; mti < 623; mti++) { r = ((r ^ r >> 30U) * 1812433253U + mti) + 1U; state[mti + 1] = r; } state[624] = 624U; } // // File trailer for eml_rand_mt19937ar_stateful.cpp // // [EOF] //