title: I need a Python Function that will output a random string of 4 different characters when given the desired probabilites of the characters
body: <p>For example, 
   The function could be something like def RandABCD(n, .25, .34, .25, .25):</p>
  
  <p>Where n is the length of the string to be generated and the following numbers are the desired probabilities of A, B, C, D.</p>
  
  <p>I would imagine this is quite simple, however i am having trouble creating a working program. Any help would be greatly appreciated. </p>