Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# RandomRange - Prototype Docs

## RandomRange :: union

Define a numerical property in terms of minimum and maximum to be used as a randomly chosen value in that range (inclusively).

The maximum cannot be less than the minimum.

#### Union members

{uint8, uint8} | First number is the minimum, second is the maximum.
uint8 | The same minimum and maximum.

Type used in

- VariableAmbientSoundLayer::sublayer_starting_offset
- VariableAmbientSoundLayer::sublayer_offset
- VariableAmbientSoundLayer::sample_length
- VariableAmbientSoundLayerStateProperties::sequence_length
- VariableAmbientSoundLayerStateProperties::number_of_repetitions
- VariableAmbientSoundLayerStateProperties::start_pause
- VariableAmbientSoundLayerStateProperties::pause_between_samples
- VariableAmbientSoundLayerStateProperties::pause_between_repetitions
- VariableAmbientSoundLayerStateProperties::end_pause
- VariableAmbientSoundState::start_pause
- VariableAmbientSoundState::end_pause
- VariableAmbientSoundState::number_of_enabled_layers