Randoms in prefabs
I currently have a prefab for a fighter. The fighter has a script for it's movement. In the script, I create a random number (I've tried float and int), and then I run an if statement, with the goal being that half the time the script will make the fighter turn clockwise, and the other half the time counter-clockwise. I've been having multiple problems creating a random number in a prefab, but the real issue right now seems to be that it creates the same random number for the groups of prefabs created, then the next group get another random number. So I'll get 8 fighters in a row all spinning the same way, then the next batch of 8 will spin the other way. So I'm guessing that Unity calls on the same random number each frame, so two instantiations of the same prefab will ALWAYS return the same random number, is this true? If so, is there any trick to make the same prefabs return different random numbers, so that I can accomplish this? If I'm wrong about how random numbers are generated (which I hope so, because that's quite limiting in the math...), what am I wrong about, and why is this happening?
Also = I don't know where to post things properly. I keep getting emails saying I'm posting in the wrong place, and I don't see anywhere that I can change where it goes. There's "select a space for your question", but it's only got four options, and the only one that seems to be questions would be helproom. What am I suppose to do?
Hello @Cosmology27
First, you posted in the right place HelpRoom.
Then about your problem, we need to see the code to know more things.
Are you using some static variable to get the random number?
Where is your code attached? Show us some screenshots of inspector.
Bye!