Bizzare behaviour

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 ?

Without any code we cant help fix the bugs in your code.

For random you have to seed it to make sure its different everytime.Unity - Scripting API: Random.seed

For now you should keep the seed the same so you can see where the issues are taking place, once its looking good keep changing the seed to make sure its working 100%

The issue is. Im not using seed and im still getting the same result everytime until i have a 1 good run then the randomness changes.

But the code itself is here : Apr 18 10:43 PM - Codeshare