code: def throw_random( lengths, mask ):
      
      saved = None
      for i in range( maxtries ):
          try:
              return throw_random_bits( lengths, mask )
          except MaxtriesException as e:
              saved = e
              continue
      raise e
docs: Try multiple times to run 'throw_random'