'Range' is not a member of 'Random'

Hi!

I get in trouble during unity

error:
‘Range’ is not a member of ‘Random’

but, Random.Range is class function in unity…!
I don’t know…

Ah,
I’m not so good at English. T_T*
Thank you for your reading!

Show us the code.

Double check you are not using the System namespace.

That can cause conflicts with System.Random.

Also make sure you do not have an object or class named Random. Any Global variables or Class/Object names will conflict and the compile won’t know which Random you mean.

Following what Ntero wrote, just use the complete namespace scope

UnityEngine.Random.Range(minValue, maxValue);

and the problem will be gone.

Thanks guys!
Thank for the help!

Especially dart,Ntero
The answer is perpect!! XD
problem solved!

Thanks!!!