wbinpost function

Random sampling from a binomial posterior distribution, using weights