randFun2.cpp