Im trying to implement Fortunes algorithm for Voronoi diagram generation. I have the code written and fixing the bugs. But im geting bizzare behaviour from the Random and code itself.
At first the edges are messed up(No detction of intersections). So i modify the code a bit, so that it would check the right edges. Now 1 time it works. Next time i run it, it messed up again.
Also every time i run it i get the same points. As long as i dont have a successful diagram construction i get the same points. But i don’t seed the random. Its like it know’s i messed up and need to test it.
Why does random behaive this way ?