ofSize

open override fun ofSize(size: Int): IntRangeArbitrary

Fix the size (the difference between first and last value of a range).

Return

new arbitrary instance

Parameters

size

The size of the generated IntRange


fun ofSize(range: IntRange): IntRangeArbitrary

Set min and max size (the difference between first and last value of a range).

Return

new arbitrary instance

Parameters

range

The range for the size of the generated IntRange