Prevent _.random returning max + 1 in rare cases
Merge pull request #1818 from jawj/master

Prevent _.random returning max + 1 in rare cases