Add C++ random operations