C ++ has a built-in global random number generator. If you want to sow it, then srand((unsigned int)seed) is the way to go. This is not exactly the same as the C # code you showed. When you write:
Random _rndGenerator = new Random(seed);
You get a separate instance of the random number generator. Thus, you can have several random number generators in your program. As far as I know, the C ++ library does not have this design, although it seems that C ++ 11. does.
In short, srand((unsigned int)seed) true if you are using older versions of C ++ or just want to use one RNG in your program. If you need multiple RNGs, then use C ++ 11, or collapse your own.
source share