I have made some minor progress on this. I took the Jinja expression you used
{{range(1,20000)|random}}
to populate a field on the records. That works great as you described.
Next I am trying to pull that field and the RID's into a JSON file and order them by the random number field.
Then I want to extract the RID's from the first 10 records in order by the random numbers.
That will give me my pool of randomly selected records for the business process.
Then I will clear the random field in the original data set.
The hard part is the JSON step but once I have a framework, this should be repeatable for other cases.
------------------------------
Don Larson
------------------------------