@Campbell Barton (campbellbarton) Just seeing if you had any updated suggestions for this revision.
Apr 28 2021
Apr 22 2021
Apr 20 2021
Fixed bad double initialization of i variable in previous revision.
Simplified logic using CTX_data_collection_get to count and populate the array as suggested by @Campbell Barton (campbellbarton)
Apr 19 2021
Implemented a fix for OBJECT_OT_select_random. Here's the diff: https://developer.blender.org/D11017 Let me know if I can submit the diff in a better way!
Apr 18 2021
Hi, I've been working on implementing this for OBJECT_OT_select_random. I believe that I am essentially done except for one part of the specification that was referenced here: https://developer.blender.org/D1927 by @Campbell Barton (campbellbarton)