---
title: ApplyEachRandomly
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/applyeachrandomly
---

# ApplyEachRandomly

Applies each transformer randomly given a probability.

## Declaration

```swift
struct ApplyEachRandomly<Element>
```

## Topics

### Creating an augmentation

- [init(probability:_:)](createmlcomponents/applyeachrandomly/init(probability:_:).md)

### Getting the probability

- [probability](createmlcomponents/applyeachrandomly/probability.md)

### Applying transformers

- [applied(to:generator:eventHandler:)](createmlcomponents/applyeachrandomly/applied(to:generator:eventhandler:).md)

## Relationships

### Conforms To

- [RandomTransformer](createmlcomponents/randomtransformer.md)

## See Also

### Augmentations

- [ApplyRandomly](createmlcomponents/applyrandomly.md)
- [AugmentationBuilder](createmlcomponents/augmentationbuilder.md)
- [AugmentationSequence](createmlcomponents/augmentationsequence.md)
- [Augmenter](createmlcomponents/augmenter.md)
- [ChooseRandomly](createmlcomponents/chooserandomly.md)
- [RandomImageCropper](createmlcomponents/randomimagecropper.md)
- [ShuffleRandomly](createmlcomponents/shufflerandomly.md)
- [UniformRandomFloatingPointParameter](createmlcomponents/uniformrandomfloatingpointparameter.md)
- [UniformRandomIntegerParameter](createmlcomponents/uniformrandomintegerparameter.md)
- [UpsampledAugmentationSequence](createmlcomponents/upsampledaugmentationsequence.md)
