import { OpenApi } from "@typia/interface"; /** * Generate a random integer from an integer schema. * * Bounds are tightened to the integers they contain, a missing side defaults to * a window of one hundred beside the other, and a step is satisfied through the * decimal multiple generator. * * The optional source supplies draws in [0, 1); it defaults to the platform * source resolved when this helper is called. Nested draws use the same * source. * * @evidence contracts/common.md#principled-implementation The bounds are tightened to the integers they contain, an exclusive bound moves to the next representable integer, a missing side defaults to a window of one hundred around the other, an infinite bound that excludes nothing is dropped and one that excludes everything throws; the scalar draw maps the source fraction with floor(source() * (maximum - minimum + 1)) + minimum when the width is finite, or weighted finite endpoints otherwise, and clamps rounding to the selected bounds, or selects a multiple through the decimal multiple generator. Uniform index probabilities on exactly representable integer intervals require a uniform source; intervals beyond exact integer precision can return only representable numbers. An injected deterministic source retains the same bound arithmetic. * @evidence contracts/common.md#clear-and-simple-design One function with private boundary helpers shared in shape with the number generator. * @evidence contracts/common.md#prohibited-implementation-shortcuts Errors are explicit, and the default window of one hundred is an arbitrary generator choice that is documented by its use only. * @evidence contracts/common.md#meaningful-documentation The doc states how the bounds, the missing side and the step are handled, and the boundary helper explains the infinite bound rule. */ export declare const _randomInteger: (schema: OpenApi.IJsonSchema.IInteger, source?: () => number) => number;