The short answer, explained
There is no public marker on an enquiry letter telling you whether HMRC selected your return because of a specific risk flag or purely at random. In practice, the large majority of enquiries follow some form of risk indicator, since HMRC's resources are targeted where a discrepancy is more likely.
A genuinely random sample is still used, partly to catch non-compliance that risk models miss, and partly to keep those models accurate by comparing outcomes across risk-flagged and random cases.

