Perlin Noise doesn't work together with Random Range?

Hey guys, I’ve run into very interesting problem recently:
When I use Perlin Noise it works perfectly however if there is a line with Random.Range somewhere in the
script as well the Perlin Noise generator keeps returning still the same values, no matter the values that are in it. Does anyone know why is this happening?
Example:

This works just fine:

float i = 0;

void Update(){

Debug.Log(Mathf.PerlinNoise(i, 1));
i += 0.01f;

}

However this keeps returning still the same value:

float i = 0;
float j = 0;

void Update(){

j = Random.Range(0, 10);
Debug.Log(Mathf.PerlinNoise(i, j));
i += 0.01f;

}

And the point is that the Random.Range doesn’t even have to be directly affecting the values in
the Perlin Noise, it can be anywhere in the code and it will produce the same “bug”.

Your code works fine. It’s probably Debug.Log that reduces and rounds the values to something that look the same every time. Try this and you’ll see:

 float i = 0;
 float j = 0;
 
 void Update(){
 
 j = Random.Range(0, 10);
 Debug.Log(Mathf.PerlinNoise(i, j).ToString("G6"));
 i += 0.01f;
 
 }