Added rand_break function

Random breaks function and random_int helper function are added