Gamma distribution in C#?

This is a discussion on Gamma distribution in C#? within the C# Programming forums, part of the General Programming Boards category; Hi all,
I'm looking for any helpful info, links, possibly libraries on getting random numbers from gamma distributions in C#...
...

Gamma distribution in C#?

I'm familiar with using normal distributions and can easily convert what I have in C++ to C# but for gamma distributions i have nothing and won't be able to dll any of the c++ gamma stuff i've found...

C# has a Random class that you can instantiate to get a RNG, something like

Code:

Random my_numbers = new Random();

You can then say

Code:

cdf = my_numbers.NextDouble();

to get a uniform distribution between 0 and 1. If you have a transform for a uniform distribution to a gamma distribution, then you're golden. (I'd have to look at what the gamma distribution is to know.)

C# has a Random class that you can instantiate to get a RNG, something like
Code:

Random my_numbers = new Random();

You can then say
Code:

cdf = my_numbers.NextDouble();

to get a uniform distribution between 0 and 1. If you have a transform for a uniform distribution to a gamma distribution, then you're golden. (I'd have to look at what the gamma distribution is to know.)

Actually the gamma dist for these electronics parts (and more importantly they're MTBF) will be supplied to me (and thankfully so), I'll be dealing more with analyzing that data for cost-effectiveness purposes. Only thing is i'm at a stand still until that portion of the code comes back from our contractor, so I was just looking for something quick that I could start writing my portion of the program.

I suppose it doesn't really matter if I use some other distribution to do my stuff, but then i don't know how that might effect things down the road...