← random operator page · numeric/random/sc/single_draw
pandas ✅ · DuckDB ✅
random(SC_1, SC_2) on scalars, with SC_1 = 15 and SC_2 = 12 as in the page's valid syntax random(15,12).
Random: "The operator returns a random decimal number >= 0 and <1."
SC_r is a Number in [0, 1) that is the same on every run; a draw has no fixed value, so the expected value is null and the property is checked.
SC_r := random(SC_1, SC_2);
| SC_1 | SC_2 |
|---|---|
| 15 | 12 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"},
{"name": "SC_2", "type": "Integer"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Number",
"value": null
}
]
}