prn_rand source code and makefile