Answer the question
In order to leave comments, you need to log in
How can I make it so that I can write random.range?
Colleagues, good evening!
Tell me, please, I downloaded the tutorial on working in Unity, but in the process a question arose, the lecturer enters "int index = Random.Range", and then the values, and when I start to enter, it gives an error, I attach screenshots, help) This is what gives me , but here is what the lecturer suggests to enter range, I don’t have (
Answer the question
In order to leave comments, you need to log in
Probably because he uses UnityEngine.Random and you use System.Random.
Decision:
using System; // удаляем
using UnityEngine; // добавляем
int index = UnityEngine.Random.Range(1,2);
using Random = UnityEngine.Random;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question