In untiy:
//
// Summary:
// Returns a random float number between and min [inclusive] and max [inclusive]
// (Read Only).
public static int Range(int min, int max);
in documents:
Returns a random float number between and min [inclusive] and max [inclusive] (Read Only).
The true one is the document’s version, I’v checked.
I still can’t work out where you’re seeing the bad version. You seem to be saying the docs are right, but there is some example code somewhere that is wrong? Where is it? Let me know and I’ll fix it!
You can see the mistake when opening visual studio/mono developer and right click on the Random.Range function and pick “Go To Definition”.
There you will see the functions with their comments.
Which version of Unity are you seeing this in? I just had a look in 5.3 and I’m seeing a different (correct) version, and I also notice that the commands marked ‘obsolete’ in mine aren’t marked like that in yours, so perhaps you’re looking at an older version of unity?