Replaced "own" rng with STL rng.