Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Fully Compatible
-
v4.4
-
Query 2020-06-01, Query 2020-06-15
-
46
Description
For generating a random number during aggregation or something like SERVER-22225 it would be nice to have a way to generate a (pseudo-)random number, either as an expression or an a system variable.
Attachments
Issue Links
- is depended on by
-
SERVER-48474 Add $sampleRate match expression
-
- Closed
-
-
SERVER-48464 Remove {$rand:{const:true}}
-
- Closed
-
- is documented by
-
DOCS-13883 Investigate changes in SERVER-30405: add expression to generate a random number
-
- Closed
-
- is duplicated by
-
SERVER-32928 $rand function
-
- Closed
-
- is related to
-
SERVER-22123 Add an option to the $sample stage to specify weights to use in the sampling.
-
- Backlog
-
- related to
-
SERVER-43666 Sort by "randVal" is not random
-
- Closed
-