Last active
August 6, 2021 18:56
-
-
Save SethDusek/12ea5f6d132a9afd37c37d20bf013ce2 to your computer and use it in GitHub Desktop.
Giveaway script
This file contains hidden or 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
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