random_rust

Crates.iorandom_rust
lib.rsrandom_rust
version0.1.0
sourcesrc
created_at2022-11-15 08:31:02.919849
updated_at2022-11-15 08:31:02.919849
description生成随机数据的库
homepagehttps://github.com/Rehtt/random_rust
repositoryhttps://github.com/Rehtt/random_rust
max_upload_size
id715536
size15,782
(Rehtt)

documentation

https://docs.rs/random_rust

README

#[cfg(test)]
mod tests {
    use chrono::{Duration, Local};
    use super::*;

    #[test]
    fn it_works() {
        let a: DateTime<Local> = Local::now();
        println!("{}", rand_time(a.sub(Duration::days(180)),a));
        println!("{}", rand_id_no(a));
        println!("{}", rand_phone());
        println!("{}",rand_name());
    }
}
Commit count: 4

cargo fmt