p,q binary power now randomly chosen in bbs()