title: python (SimPy) generate random numbers that follow the erlang distribution
body: <p>I am using Python (SimPy package mostly, but it is irrelevant to the question I think), modeling some systems and running simulations. For this purpose I need to produce random numbers that follow distributions. I have done alright so far with some distributions like exponential and normal by importing the random (eg from random import *) and using the expovariate or normalvariate methods. However I cannot find any method in random that produce numbers that follow the Erlang distribution. So:</p>
  
  <ol>
  <li>Is there some method that I overlooked?</li>
  <li>Do I have to import some other library?</li>
  <li>Can I make some workaround? (In think that I can use the Exponential distribution to produce random “Erlang” numbers but I am not sure how. A piece of code might help me.</li>
  </ol>
  
  <p>Thank you in advance!  </p>