Accept all integers for as dimension arguments in rand and randn
Merge pull request #9275 from JuliaLang/anj/random

Accept all integers for as dimension arguments in rand and randn