Remove costly assert from RandIntGen

Restrict the type parameters instead
Merge pull request #8563 from JuliaLang/sjk/randintgen

Remove costly assert from RandIntGen