One way to generate a random number for virtually any distribution is to use the cumulative distribution function of the distribution you want. You can generate uniformly distributed random numbers...