backport-1.7-3483

Backport #3483: `BUG: numpy.random.binomial raised ValueError for n == 0`

Closed #3480.