diff --git a/src/main/java/de/oshgnacknak/gruphi/MazeGenerator.java b/src/main/java/de/oshgnacknak/gruphi/MazeGenerator.java index 8fd7276..6786429 100644 --- a/src/main/java/de/oshgnacknak/gruphi/MazeGenerator.java +++ b/src/main/java/de/oshgnacknak/gruphi/MazeGenerator.java @@ -40,8 +40,8 @@ public class MazeGenerator { stack.push(current); var neighbour = unvisited.get(random.nextInt(unvisited.size())); - graph.connectNodes(current, random.nextDouble(), neighbour); - graph.connectNodes(neighbour, random.nextDouble(), current); + graph.connectNodes(current, 1.0, neighbour); + graph.connectNodes(neighbour, 1.0, current); visited.add(neighbour); stack.push(neighbour);