Skip to content

Commit 4e88c87

Browse files
committed
rand is fixed in the example
1 parent 17697c0 commit 4e88c87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tour_mutations.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fn get_moves(num_moves: usize, num_cities: usize) -> Vec<(usize, usize)> {
1717
let mut moves = vec![];
1818

1919
for _ in 0..num_moves {
20-
let a = rng.gen_range(0..num_cities);
21-
let b = rng.gen_range(0..num_cities);
20+
let a = rng.random_range(0..num_cities);
21+
let b = rng.random_range(0..num_cities);
2222
moves.push((a, b));
2323
}
2424

0 commit comments

Comments
 (0)