add random number generation and makefile