Create pointer_rand.cpp