Random Integer (RandomIntegerGenerator)

The Random Integer generator returns a random integer between a specified minimum (inclusive) and maximum (exclusive).

The Random Integer generator does not support linking or consistency. You cannot configure differential privacy.

The metadata object is populated from DiscreteDistributionMetadataarrow-up-right, which includes the minimum and maximum values.

{
  "schema": "string",
  "table": "string",
  "column": "string",
  "path": "string",  //JSON fields only
  "dataType": "string",  //MongoDB, Amazon DynamoDB, and JSON fields only
  "metadata": {
    "presetId": "string",
    "generatorId": "RandomIntegerGenerator",
    "min": integer,
    "max": integer,
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string"  //If custom value processor applied
  }
}

Example replacement

In this example replacement for the Random Integer generator, the returned value is between 0 and 5. Because max is exclusive, the highest possible value is 4.

Last updated

Was this helpful?