Skip to content

Instantly share code, notes, and snippets.

@blinsay
Created May 10, 2020 17:10
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 blinsay/a1d2134b978f72246c2b824f5bfa8124 to your computer and use it in GitHub Desktop.
Save blinsay/a1d2134b978f72246c2b824f5bfa8124 to your computer and use it in GitHub Desktop.
use rand::{thread_rng, Rng};
use std::convert::TryFrom;
fn main() {
loop {
print!("{}", char::try_from(0x2571 + (thread_rng().gen_bool(0.5) as u32)).unwrap());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment