choose last item in history when choices are exhausted

Raising an exception in the case that all choices have been exhausted in
the randomize module breaks things so set it to the last seen problem
instead.