Sorry this might be a simple question, but I am still learning. So I am trying to create a random number generator, and currently I am doing this randomNum = Random.Range(1, 100); but I tried storing it inside of a List/Array using multiple methods. Like List randomNumbers = new List {Random.Range(1,100), Random.Range(1,100), Random.Range(1,100)} But it said I could not keep variables inside of a list, so I tried other things, than I decided to use an array, and it basically got me the same result.
Aucun commentaire:
Enregistrer un commentaire