Converted random module to C++.