MCPcopy Create free account
hub / github.com/daniel-e/rustml / main

Function main

pipeline/example/example.rs:9–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7extern crate pipeline;
8
9fn main() {
10 let c = pipeline::read_config().unwrap();
11
12 let mut output = File::create(c.target).unwrap();
13 let min = c.params.get("min").unwrap().parse::<usize>().unwrap();
14 let max = c.params.get("max").unwrap().parse::<usize>().unwrap();
15 let mut n = c.params.get("n").unwrap().parse::<usize>().unwrap();
16
17 let mut rng = rand::thread_rng();
18 while n > 0 {
19 writeln!(output, "{}", rng.gen_range(min, max + 1)).unwrap();
20 n -= 1;
21 }
22}
23

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected