Small fix?

- Changed range to min and max parameters as required in random.js
- Fixed typo in comment