Random number in range
Rust
#![allow(unused)] fn main() { use rand::Rnd; let n = rand::thread_rng().gen_range(0..10) }
Python
import random
n = random.randint(0, 10)
#![allow(unused)] fn main() { use rand::Rnd; let n = rand::thread_rng().gen_range(0..10) }
import random
n = random.randint(0, 10)