When we are using a random number generator in C#, we can define a variable like
private Random _rndGenerator;
in a class and then call
_rndGenerator = new Random(seed);
correctly in the constructor of the class.
My question is:
What is a C++ equivalent of such a definition (i.e. an RNG in a class). I think it is not a correct approach to use
srand((unsigned int)seed);
right?