Last active
December 19, 2017 05:21
-
-
Save toksdotdev/6df15f7104a55c3b5b948305c76b7901 to your computer and use it in GitHub Desktop.
Generating random and fully computed NUBAN in Rust.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate nuban_rust; | |
use nuban_rust::Nuban; | |
fn main() { | |
let a = [ | |
["382", "898424554"], ["032", "457395734"], ["122", "758375034"], ["776", "564820900"], | |
["453", "898424554"], ["989", "457395734"], ["090", "758375034"], ["232", "564820900"], | |
["766", "898424554"], ["878", "457395734"], ["343", "758375034"], ["445", "564820900"], | |
]; | |
for val in a.iter() { | |
let mut nuban_no = Nuban::new(val[0], val[1]); | |
println!("{}", nuban_no.full()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment