nanosecond

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

Throws FiktionConfigurationException when either endpoint is not a valid nanosecond.


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

Throws FiktionConfigurationException when value is not a valid nanosecond.


context(context: FakeContext)
fun nanosecond(): Int

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

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