Random Boolean (RandomBooleanGenerator)
The Random Boolean generator does not support linking or consistency. You cannot configure differential privacy.
The
metadata
object is populated from the RatioMetadata
object. The ratio
field indicates the percentage (as a decimal value between 0 and 1.0) of values to set to true
.{
"presetId": "string",
"generatorId": "RandomBooleanGenerator",
"schema": "string",
"table": "string",
"column": "string",
"dataType": "string" //MongoDB only
"metadata": {
"ratio": numeric
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
In the following example replacement for the Random Boolean generator, 40% of the destination values are
true
, and 60% are false
.{
"name": "is-available",
"schema": "public",
"table": "products",
"links": [
{
"presetId": "RandomBooleanGenerator",
"generatorId": "RandomBooleanGenerator",
"schema": "public",
"table": "products",
"column": "is-available",
"metadata": {
"ratio": 0.4
}
}
]
}
Last modified 1mo ago