[#598] Fix Array.prototype.random() and friends

- Also allow the [min] argument to be optional for Number.prototype.random() and friends
- Include updated documentation for the random functions
- Use the new shorter syntax everywhere, and fix some bugs along the way...