In Canada their "random checks" seem to be via a machine/automated process. You stand on a mat and an arrow either directs you into a line or to additional checks, so there can be no racial or otherwise profiling.
It is a great system, I really enjoyed it when I was there.