Account for negative random numbers in range-range

* random/rand-long can return negative longs, so we need to account for
this in rand-range
* fix gen/sample to not re-use the same state
Don't re-use same state in test.check main test loop