Code that generates a random 10 digit filename and creates the file
<p>I tried using:</p>

<pre><code>import random
filenamemaker = random.randint(1,1000)
</code></pre>

<p>all help would be great thanks :)</p>

<pre><code>import random

filename = ""
for i in range(10):
    filename += str(random.randint(0,9))

f = open(filename + ".txt", "w")
</code></pre>

python python-3.x random