C#C
C#3y ago
9 replies
yeetyoottoot

does this work for choosing a random item in a list then removing it then choosing again

int randomNumber = Random.Range(spawnInts[0], spawnInts.Count);
                    spawnInts.RemoveAt(randomNumber);
                    randomNumber = Random.Range(spawnInts[0], spawnInts.Count);

does this make it so when i choose a 2nd time i cant get the number i removed
Was this page helpful?