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 DiscreteDistributionMetadata, which includes the minimum and maximum values.

{
  "schema": "string",
  "table": "string",
  "column": "string",
  "dataType": "string",  //MongoDB 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.

{
  "name": "number-of-children",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "number-of-children",
      "metadata": {
        "presetId": "RandomIntegerGenerator",
        "generatorId": "RandomIntegerGenerator",
        "min": 0,
        "max": 5
      }
    }
  ]
}

Last updated