Add get_random_subset
poc utility function
#1928
Merged
get_random_subset
poc utility function
#1928