pub fn generate<T, R>(rng: &mut R) -> Twhere T: GenerateRandom, R: Rng + ?Sized,
Generate a random value for a type.