Skip to content

Instantly share code, notes, and snippets.

@mtimkovich
Last active February 10, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtimkovich/8373455b8c0eba0089f97f294611b8c9 to your computer and use it in GitHub Desktop.
Save mtimkovich/8373455b8c0eba0089f97f294611b8c9 to your computer and use it in GitHub Desktop.
fake netplay codes
use rand::Rng;
fn main() {
let netplay: String = (0..8)
.map(|_| format!("{:x?}", rand::thread_rng().gen_range(0, 16)))
.collect();
println!("{}", netplay);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment