faster version of rzbinom and added code to adjust for double counting