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.{
"presetId": "string",
"generatorId": "RandomDoubleGenerator",
"schema": "string",
"table": "test",
"column": "number-column",
"dataType": "string" //MongoDB only
"metadata": {
"min": double,
"max": double
},
"encryptionProcessor": "x-on", //To use configured Tonic data encryption
"customValueProcessor": "string" //If custom value processor applied
}
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": [
{
"presetId": "RandomDoubleGenerator",
"generatorId": "RandomDoubleGenerator",
"schema": "public",
"table": "test",
"column": "number-column",
"metadata": {
"min": 2.5,
"max": 10.75
}
}
]
}