필드 · Numeric

필드 · Numeric · string.numeric. 생성 메서드 · 예시

string.numeric

생성 설정

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

매개변수 & 예시

Generates a given length string of digits.

string.numeric(options?: number | { length?: NumberOrRange; allowLeadingZeros?: boolean; exclude?: ReadonlyArray<LiteralUnion<NumericChar>> | string; })
options
Either the length of the string to generate or the optional options object.
options.length
The length of the string to generate either as a fixed length or as a length range. Defaults to 1.
options.allowLeadingZeros
Whether leading zeros are allowed or not. Defaults to true.
options.exclude
An array of digits which should be excluded in the generated string. Defaults to [].

예시

"6"

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

관련 생성기

시나리오 탐색