modify randMax Calls