BUG: handle non integer types for multinomial/dirichlet size

Closes gh-3173
Merge pull request #4348 from juliantaylor/rand-int-check-bug

BUG: handle non integer types for multinomial/dirichlet size