One advice people always give for webmasters in the Google Adsense program is to test ad placement, color scheme, etc. A common test is the A/B test. There are several articles talking about how to set up such a test using either Javascript or PHP, and they invariably involve the use of a random number generator to determine whether a visitor would fall under the control group or the test group. Even Google’s official Adsense blog talks about it.