8 use generate_random::GenerateRandom;
10 #[derive(GenerateRandom)]
17 // Providing a weight allows changing the probabilities.
18 // This variant is now twice as likely to be generated as the others.
23 let mut rng = rand::thread_rng();
24 let my_value = MyEnum::generate_random(&mut rng);
29 [Documentation](https://lib.rs/crates/generate-random)