Links

Random Double (RandomDoubleGenerator)

The Random Double generator generates a random double number between the specified minimum (inclusive) and maximum (exclusive).
The Random Double generator does not support linking or consistency. You cannot configure differential privacy.
The metadata object is populated from the ContinuousDistributionMetadata object. You specify the minimum and maximum values.
{
"schema": "string",
"table": "test",
"column": "number-column",
"dataType": "string" //MongoDB only
"metadata": {
"presetId": "string",
"generatorId": "RandomDoubleGenerator",
"min": double,
"max": double,
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
}

Example replacement

In this example replacement for the Random Double generator, the generator is configured to produce numbers between 2.5 and 10.75.
{
"name": "number-column",
"schema": "public",
"table": "test",
"links": [
{
"schema": "public",
"table": "test",
"column": "number-column",
"metadata": {
"presetId": "RandomDoubleGenerator",
"generatorId": "RandomDoubleGenerator",
"min": 2.5,
"max": 10.75
}
}
]
}
Last modified 1mo ago