#include #include int main() { std::linear_congruential_engine bsd_rand(0); std::linear_congruential_engine ms_rand(0); std::cout << "BSD RAND:" << std::endl << "========" << std::endl; for (int i = 0; i < 10; i++) { std::cout << bsd_rand() << std::endl; } std::cout << std::endl; std::cout << "MS RAND:" << std::endl << "========" << std::endl; for (int i = 0; i < 10; i++) { std::cout << (ms_rand() >> 16) << std::endl; } return 0; }