length

Creates settings that replace generated length endpoints with value and clear configured length exclusions.

Throws FiktionConfigurationException when either endpoint is not a valid length.


Creates settings that fix generated lengths to value and clear configured length exclusions.

Throws FiktionConfigurationException when value is not a valid length.


context(context: FakeContext)
fun length(): Int

Samples a length from the composed length candidates after applying min, max, and exclusion settings.

Throws FiktionConfigurationException when the composed length candidates are empty or too sparse.