added random directory and palin.cpp