i missed the explanation for random.range(),
I tried it out (in the same format as in the quuiz), but it gave me an error, said it was an ambiguity between unityengine and system .
what should i do here?

Hi Adam,

If you are not using anything within the System namespace you can remove the using directive at the top of the class. This will remove the ambiguity.

Alternatively, you can implicitly state the fully qualified class name when using the Range method, for example;

UnityEngine.Random.Range(min, max);

Hope this helps :slight_smile:

1 Like

Thank you Rob!

1 Like

You’re very welcome :slight_smile:

Privacy & Terms