add random number generator cannot run