random-string
A simple crate that allows you to generate random strings based on a given charset and length.
Usage
Add a dependence in Cargo.toml
[]
= "1.0"
Example
use generate;
A simple crate that allows you to generate random strings based on a given charset and length.
Add a dependence in Cargo.toml
[dependencies]
random-string = "1.0"
use random_string::generate;
fn main() {
let charset = "1234567890";
println!("[{}]", generate(6, charset));
}