Function array_generator_custom

Source
pub fn array_generator_custom<F: Fn(&mut ThreadRng) -> i32>(
    min_n: i32,
    max_n: i32,
    gen: F,
) -> impl Fn() -> String
Expand description

This function returns a function that generates an array of integers with a custom generator.

The array will have a length between min_n and max_n (inclusive). The generator function will be called to generate each element in the array.