add randfeature.cpp