now printing rand_num random number of times