Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## VariableAmbientSoundCompositionMode :: union

Defines how are individual samples selected and played after each other.

#### Union members

`"randomized"` | Samples are selected randomly. The same sample cannot be repeated twice in a row.
`"semi-randomized"` | Samples are selected in a repeating randomly selected sequence of a given length. The sequence is generated on each state transition. The same sample cannot be repeated twice in a row.
`"shuffled"` | Samples are selected in a repeating sequence in which each sample is played once.
`"layer-controlled"` | Samples are selected based on a sample currently playing in a different layer.

Type used in

- VariableAmbientSoundLayer::composition_mode