<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dice(self, n, d):
 """Roll ``n`` dice with ``d`` faces, and yield the results. This is an iterator. You'll get the result of each die in successon. """

        for i in range(0, n):
            yield self.roll_die(d)