Larger Than Smaller than not working

ran = Random.Range(0f, 1000f);
Debug.Log(“ran: " + ran);
if (ran > 600)
{
Debug.Log(”>600");
}
if(ran <= 600)
{
Debug.Log(“<=600”);
}
What happens:
137539-capture.png

Smaller numbers work but larger think that they are smaller and larger?
I have no idea what going on here, help?

First, look at the output in the Console, all the way to the right. The console will consolidate messages that are the same and display a count of the number of times that the message was shown. If you want a more accurate view of things, add your random number to the string for the messages (greater than 600 or less than 600) that are displayed to make them more unique.

Also, while a micro-optimization, instead of using two if() statements to compare your value, consider using if(ran > 600) { } else { } when you only have two states to check.

[Edit: forums keep munging my quoted text.]