Functioning of cover_group.sample() method?

In reply to SATYA369:

Section 19.8 Predefined coverage methods of the IEEE 1800-2017 LRM answers your questions.