Copying gameObject doesn't work as intended

Hello!

I’m new to Unity and I have an interesting problem.

I wanted to create 10 circles that appear at random places on the screen and move in random directions. I made one circle and copied it 9 times, thinking it would be okay. But when I run my game, all 10 circles appear on the same place and move to the same direction. They are basically the same. The interesting part is, when I add some print() lines to the script they become unique, so I get the 10 circles at random places going in random directions…

What am I doing wrong? Should I copy gameObjects differently?

Alright, I think I found a “solution”. I switched System.Random to UnityEngine.Random and it seems to be working. I couldn’t debug what the problem was, because during debug, even System.Random worked.