Each simulation of normal distribution is the same (C++)
问题 I write a code to simulate a normal distribution in C++. But each time it seems the result is the same. My question is what't the reason of this phenomenon and How to fix it? I never have this problem with Python. Any references are very appreciated. // Simulation.cpp : Defines the entry point for the console application. #include "stdafx.h" #include <iostream> #include<random> void main(){ // create default engine as source of randomness // The maxtime we do expriements is 10000 // Record to