No products are associated with this question.
The skewness is a function of one of the two parameters of the distribution, that you can set as you see fit. You just need to set it so the skewness is two (look at the wikipedia article on the gamma distribution).
skewness is simple 2 divided by the square root of the shape parameter for gamma distributions. Here's an example.
skewness = 2; scale = 1; shape = 2./sqrt(skewness); gamrnd(shape,scale)