Generate random big integers within a range

Thanks to @huonw for feedback
auto merge of #9133 : dcrewi/rust/bigint-random-range, r=huonw