 Here are the details. Initially, each doctor is assigned a random credence that the new treatment is superior, chosen uniformly from the [0, 1] interval. Those with credence above .5 will then try the new treatment on 1,000 patients. The number of successes will be randomly determined by performing 1,000 “flips” of a virtual coin with probability .501 of heads (successful treatment).