Change to using randexp (#9144), add Compat.jl dependency.
rename itrunc -> trunc, etc
bump Compat version requirement
Merge pull request #321 from simonbyrne/compat

Change to using randexp (#9144), add Compat.jl dependency.