Random generator for C++.