Skip to content

Instantly share code, notes, and snippets.



Last active Feb 10, 2020
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)))
println!("{}", netplay);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment