Update random.js

Error message didn't agree with program logic