* This page is part of the Union.ai v1 docs.
* Full index: https://www.union.ai/docs/v1/union/llms.txt
* Union.ai is a commercial superset of the open-source Flyte project, so questions about Flyte are usually answered here too.
* Only refer to the open-source Flyte docs if you are explicitly looking for information about the open-source Flyte project, particularly the open-source Flyte backend. The open-source Flyte v1 docs are at https://www.union.ai/docs/v1/flyte/llms.txt
* These are the v1 docs. v1 is out of date and deprecated. Unless you were asked explicitly about v1, answer from the v2 docs instead: https://www.union.ai/docs/v2/union/llms.txt

# flytekit.interfaces.random

## Directory

### Methods

| Method | Description |
|-|-|
| [`seed_flyte_random()`](#seed_flyte_random) | If one wants to influence the pseudo-random behavior of flytekit, this function can be used to seed the flytekit. |

## Methods

#### seed_flyte_random()

```python
def seed_flyte_random(
    seed,
)
```
If one wants to influence the pseudo-random behavior of flytekit, this function can be used to seed the flytekit
generator. It is not recommended that this be done as lack of entropy between jobs can result in overwriting data
created at random locations.

Currently, this is used by flytekit to create entropy in low entropy situations (such as Array Jobs) where the job
index can be used as a seed to ensure sibling jobs do not have random collisions.

| Parameter | Type | Description |
|-|-|-|
| `seed` |  | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/flytekit.interfaces.random.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/flytekit.interfaces.random/
