Fix type of initial range
Add radix argument to parseInt
Merge pull request #1844 from david-yz-liu/issue-1843

Fix type of initial range