IntegerGenerator generator¶
Warning
The current page still doesn't have a translation for this language.
But you can help translating it: Contributing.
Generate integer values within a configurable range, granularity, and distribution.
Why: Use IntegerGenerator for bounded counts, scores, and ordinal fixtures with optional granularity and distribution; use IncrementGenerator when values must follow row order.
Category: core.
Output: int.
1 | |
Parameters¶
min:int | null; DefaultNone— Inclusive lower bound of generated integers.max:int | null; DefaultNone— Inclusive upper bound of generated integers.granularity:int | null; DefaultNone— Positive step defining the permitted integer grid.distribution:str | null; DefaultNone— Statistical distribution used across the bounded grid.