Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace RandomDigitsFormatEntry

The Random Digits masking format generates random digits of length within a range. The length range is defined by the startLength and endLength attributes. The start length must be less than or equal to the end length. When masking columns with uniqueness constraint, ensure that the length range is sufficient enough to generate unique values. This masking format pads to the appropriate length in a string, but does not pad when used for a number column. It's a complementary type of Random Number, which is not padded.

Properties

Optional description

description: undefined | string

The description of the format entry.

endLength

endLength: number

The maximum number of digits the generated values should have. It can be any integer greater than zero, but it must be greater than or equal to the start length. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

startLength

startLength: number

The minimum number of digits the generated values should have. It can be any integer greater than zero, but it must be less than or equal to the end length. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Const type

type: string = "RANDOM_DIGITS"

Methods

getDeserializedJsonObj

getJsonObj