Fixed bugs with Array#random_* and String#integer?

This PR actually started as me just trying to increase test coverage to 100%, and surprise!  I found bugs in every untested method.

@jrafanie @chessbyte Please review.