|
I have a map generator that needs to get a random number between 0 and n. When n < 150, the results seem fine. Random enough. However, when n > 150 the return values have never gone higher than 150. Therefore, is the max result in Random.Range 150?
(comments are locked)
|
|
Nope. Mistake in my code. Thanks for the help.
(comments are locked)
|

Can you paste your actual code so we can see how you are calling it?
Are you using Random.seed to seed your Random number generator?
I made this test script:
public class TestCode : MonoBehaviour {
}
And the results proved my question false. After that, it seems the problem is here:
[HideInInspector] public Vector3 vMAP_SIZE = new Vector3 (20000, 0, 20000);
Somewhere in my code it sets the vector (50, 0, 50). Just cant seem to find where. That number gets multipled by 3, therefore we get 150.