In Gary’s tutorials, in both EnemySpawner and Shooter scripts, to get random spawn times he declares 3 variables, one for base time, one for variance and last for the minimum limit. Later he uses Random.Range to get a random value between Base - variance and base + variance. And at last he clamps the value so that we won’t run into problems with negative values.
I was thinking, why do we have go through this process which is lengthy and little confusing when we could set up a minimum and max limits and use Random.Range(min, max) to get a random value for our spawn or enemy fire rate.
I’ve been using this instead of Gary’s method and I didn’t find any difference at all. Can anyone tell me what is the actual difference between these 2 methods?