Switch over to using std::rand::distributions::Range

Switch over to using std::rand::distributions::Range instead of gen_integer_range, which was removed from libstd.