Pseudorandom number generator

I plan on giving every actor a timer that ticks every 0.5 seconds. If it detects the player is out of range then deletes itself. And if the player is moving to a new area, detect everything in the 500 radius or so and calculate what should be present there and build it.

I am going to use pseudo random number generator so everything would be the way it should be no matter how many times the player comes to that area.

I need help how do I use this. std::mersenne_twister_engine - cppreference.com work