Run python function multiple times with different arguments
<p>Hi I need to have a function that would take a function and return a function that will run that argument function eg. 1000 times and each time evaluate it's argument. I have something like this:</p>

<pre><code>def runner(f):
    def inner(*args):
        for i in xrange(1000):
            f(*args)
    return inner
</code></pre>

<p>But it seems that invocation like this:<code>runner(f)(random.randint(1,UPPER_BOUND))</code> runs f 1000 times with the same argument. How to do it correctly?</p>
