pub fn secs(range: Range<u64>) -> Duration
Generates a Duration with a random whole-second length.
Duration
The number of seconds is sampled uniformly from the supplied half-open range. An invalid or empty range panics.