add RandomWriter.cpp