Skip to main content

rand_string

Macro rand_string 

Source
macro_rules! rand_string {
    ($rng:expr, $length:expr) => { ... };
}
Expand description

Returns a fresh lowercase ASCII String of length chars. Requires alloc.

ยงExamples

use vrd::{Random, rand_string};

let mut rng = Random::from_u64_seed(42);
let s = rand_string!(rng, 10);