Atrribute Error in Python 2.73 when creating random string
<p>I'm using the following function (which I think is pretty straight-forward) to generate a random string:</p>

<pre><code>import sys
import string
import random

    def random(size=16):
        lst = [random.choice(string.ascii_letters + string.digits) for n in xrange(size)]
        str = "".join(lst)
        return str
</code></pre>

<p>However, I keep getting the following error:</p>

<pre><code>AttributeError: 'function' object has no attribute 'choice'
</code></pre>

<p>Can someone tell me what's wrong with my code? Google doesn't seem to help, and I'm too new to Python to troubleshoot it effectively myself.</p>
