Generate random variable from truncated gamma
rtgamma(size, shape_, rate_, a, b)
| size | A number, size of the random variable. |
|---|---|
| shape_ | A number, shape of the truncated gamma. |
| rate_ | A number, rate of the truncated gamma. |
| a | lower bound of the range |
| b | upper bound of the range |
A vector, iid samples from \( Ga_{[a,b]}(shape\_,rate\_) \)