fix randInt for single inputs