필드 · Int

필드 · Int · number.int. 생성 메서드 · 예시

number.int

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

Returns a single random integer between zero and the given max value or the given range. The bounds are inclusive.

number.int(options?: number | { min?: number; max?: number; multipleOf?: number; distributor?: Distributor; })
options
Maximum value or options object.
options.min
Lower bound for generated number. Defaults to 0.
options.max
Upper bound for generated number. Defaults to Number.MAX_SAFE_INTEGER.
options.multipleOf
Generated number will be a multiple of the given integer. Defaults to 1.
options.distributor
A function to determine the distribution of generated values. Defaults to uniformDistributor().

예시

6017037544686572

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색