use rand::{thread_rng, Rng};
      use rand::distributions::Alphanumeric;
      
      fn main() {
        let rand_string: String = thread_rng()
          .sample_iter(&Alphanumeric)
          .take(30)
          .map(char::from)
          .collect();
        println!("{}", rand_string);
      }
      
      Rust language logo

      Generate password

      Codiga's Rust Recipes

      From alphanumeric characters

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.