Generate random big integers within a range

Thanks to @huonw for feedback