We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d8906 commit d579df7Copy full SHA for d579df7
Cargo.toml
@@ -6,4 +6,4 @@ edition = "2018"
6
7
[dependencies]
8
rand = "0.8"
9
-num = "0.3"
+num = "0.4"
src/bin/c08p02.rs
@@ -59,8 +59,8 @@ mod tests {
59
let mut off_limits: Vec<Location> = vec![];
60
let mut rng = rand::thread_rng();
61
for _ in 0..100 {
62
- let x = rng.gen_range(1, 100);
63
- let y = rng.gen_range(1, 100);
+ let x = rng.gen_range(1..100);
+ let y = rng.gen_range(1..100);
64
off_limits.push(Location { x, y });
65
}
66
let path = get_path_to(
0 commit comments