# helia_edge.utils.rng

Random seeds and ID schedules.

## helia_edge.utils.rng.set_random_seed

`function` · `python`

```python
set_random_seed(seed: int | None = None) -> int
```

Set Python, NumPy and selected Keras backend seeds; return the seed.

Source: `helia_edge/utils/rng.py:9`

## helia_edge.utils.rng.uniform_id_generator

`function` · `python`

```python
uniform_id_generator(ids: MutableSequence[T], repeat: bool = True, shuffle: bool = True) -> Generator[T, None, None]
```

Yield each ID once per cycle; shuffle mutates the supplied sequence.

Source: `helia_edge/utils/rng.py:20`

## helia_edge.utils.rng.random_id_generator

`function` · `python`

```python
random_id_generator(ids: Sequence[T], weights: Sequence[float] | None = None) -> Generator[T, None, None]
```

Sample with replacement, using optional nonnegative relative weights.

Source: `helia_edge/utils/rng.py:34`
