# tf.raw_ops.RandomGamma

<br />

Outputs random values from the Gamma distribution(s) described by alpha.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.RandomGamma`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/RandomGamma)

<br />

    tf.raw_ops.RandomGamma(
        shape, alpha, seed=0, seed2=0, name=None
    )

This op uses the algorithm by Marsaglia et al. to acquire samples via
transformation-rejection from pairs of uniform and normal random variables.
See <http://dl.acm.org/citation.cfm?id=358414>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `shape` | A `Tensor`. Must be one of the following types: `int32`, `int64`. 1-D integer tensor. Shape of independent samples to draw from each distribution described by the shape parameters given in alpha. |
| `alpha` | A `Tensor`. Must be one of the following types: `half`, `float32`, `float64`. A tensor in which each scalar is a "shape" parameter describing the associated gamma distribution. |
| `seed` | An optional `int`. Defaults to `0`. If either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed. Otherwise, it is seeded by a random seed. |
| `seed2` | An optional `int`. Defaults to `0`. A second seed to avoid seed collision. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `alpha`. ||

<br />