Added test cases and fixed some issues for Random.js and Sum.js.

generateRandomInteger throws an error when max is less than min.
sum no longer allows non-numberic values in the array.