Skip to content

Instantly share code, notes, and snippets.

@SethDusek
Last active August 6, 2021 18:56
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 SethDusek/12ea5f6d132a9afd37c37d20bf013ce2 to your computer and use it in GitHub Desktop.
Save SethDusek/12ea5f6d132a9afd37c37d20bf013ce2 to your computer and use it in GitHub Desktop.
Giveaway script
use rand::seq::SliceRandom;
fn main() {
let mut rng = rand::thread_rng();
let names = ["R0flcopt3r", "skg", "RadiantBastard", "sham1"];
println!("{} has won! Please download the Yoroi Wallet to receive your 0.2 Ergo", names.choose(&mut rng).unwrap());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment