reinstate random and add intfuncs to test/runtests.jl