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.{
"presetId": "string",
"generatorId": "RandomIntegerGenerator",
"schema": "string",
"table": "string",
"column": "string",
"dataType": "string", //MongoDB only
"metadata": {
"min": integer,
"max": integer
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
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": [
{
"presetId": "RandomIntegerGenerator",
"generatorId": "RandomIntegerGenerator",
"schema": "public",
"table": "users",
"column": "number-of-children",
"metadata": {
"min": 0,
"max": 5
}
}
]
}