added a random number generator and functional button