When I'm not tested, then there is typically another group being tested. They seem to utilize the testing machinery/staff close to 100% of the time, so if you're the next group of people as their finishing up, you're likely to be tested.
Not to say there isn't any bias, but I've never noticed a larger proportion of dark skinned/long haired/bearded etc. individuals being tested vs the departing passenger population.
I travel often and the Australian airports certainly seem to test a much higher percentage of departing passengers than other airports.