Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate rand;
- fn main() {
- let win: u8 = 1;
- let lose: u8 = 0;
- match rand::random::<u8>() / 64 {
- n if n==win => println!("yeah {} :)", n),
- //n @ lose..=lose => println!("aww {} :(", lose),
- n => println!("meh {} :/", n),
- }
- }
Add Comment
Please, Sign In to add comment