size

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

Throws FiktionConfigurationException when either endpoint is not a valid size.


Creates settings that fix generated sizes to value and clear configured size exclusions.

Throws FiktionConfigurationException when value is not a valid size.


context(context: FakeContext)
fun size(): Int

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

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