Create rand7.cpp