One company that I worked for had random testing for folks in “Safety Sensitive Positions”.
So they applied it to Pilots, Cabin Crew and Maintenance folk.
A suggestion that management should also be included because they make “safety sensitive decisions” everyday was definitely not welcomed by the management team.
As an aside when they approach you and ask you to do a random drug test replying eagerly: “Certainly, what drugs do you want me to try!” will not be greeted with chuckles and smiles.