rmultibinom is too slow when p vector is large.