Playground

Try your Rust snippets in this playground.

The top-100 crates are available for use in the playground!

use rand::prelude::*;

fn main() {
    let mut rng = rand::thread_rng();
    let hurray: u8 = rng.gen();
    let hurray = hurray.max(10);    // at least 10 times!! 
    println!("We love the Rust playground {hurray} times");
}