Printing a random amount of characters a random amount of times in one line
<p>Let's assume we only have one line to work with. We have string "fo0", and we want to print each character a random amount of times, and redo that entire statement another random amount of times; Resulting in something like the following:</p>

<pre><code>ffooooo000 ffffffoo00 fffo00000000
</code></pre>

<p>How does one go about doing this, using for loops or something similar?</p>

<p>As far as I've gotten:</p>

<pre><code>import random; x = "fo0"; print "".join(x for i in range(0,random.randrange(0,40)))
</code></pre>

<p>All this results in is something like "<code>fo0fo0fo0fo0fo0fo0</code>".</p>
