The code that you have written compiles. srand(time(0)) is only useful if you are going to call rand(). To generate a random number using the generator and the distribution you can do distribution(generator).
Can you provide detailed info how to use distribution(generator)?
I wanna get a double number from this normal distribution in every step of the program.