← random operator page · numeric/random/comp/seed_replaced_by_draws
pandas ✅ · DuckDB ✅
random whose result component is the seed measure itself.
Random: "The operator returns a random decimal number >= 0 and <1."
Me_1 is replaced by the draws, as any operator on components replaces a measure of the same name; no seed column is left to compare, so the expected file has the structure only and the draws are checked as numbers in [0, 1) that are the same on every run.
DS_r := DS_1[calc Me_1 := random(Me_1, 5)];
| Id_1 | Me_1 |
|---|---|
| 1 | 16.0 |
| 2 | 4.0 |
| 3 | 7.2 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Me_1 |
|---|
(no data points)
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Me_1", "type": "Number", "role": "Measure"}
]
}
]
}