simplify the dice roll and the output iterator