Skip to content

Instantly share code, notes, and snippets.

@mtimkovich

mtimkovich/netplay.rs

Last active Feb 10, 2020
Embed
What would you like to do?
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