Create rand.cpp