title: How to generate a random string without characters pertaining to a list, such as ','?
body: <p>Here is the code that I have used and reference in this post:</p>
  <pre><code>alpha=[&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;]
  beta=[&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;]
  charlie=[&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;]
  import random
  alpharandom=random.randint(0,2)
  betarandom=random.randint(0,2)
  charlierandom=random.randint(0,2)
  stringcode=(alpha[alpharandom],beta[betarandom],charlie[charlierandom])
  stringcodetwo=str(stringcode).replace(&quot; &quot;, &quot;&quot;)
  print(stringcodetwo)
  </code></pre>
  <p>I am using python 3.0 to generate a random string using predefined items from lists.  This results in an output similar to:</p>
  <pre><code>('Two','One','Two')
  </code></pre>
  <p>However, would it be possible to generate so that the brackets, commas and quotation marks are omitted? I have tried the <code>replace</code> function, but that only seems to work for the spaces between the generated string.
  An example of a desired output would be:</p>
  <pre><code>TwoOneTwo
  </code></pre>