Quantcast
Viewing latest article 20
Browse Latest Browse All 81

[C#] How do I randomly pick between 3 specific numbers?

Is it possible to CHOOSE a random number between 3 numbers I have set? I want to randomly choose between -3, 0, 3 but only those exact three numbers. I want my enemies to randomly spawn in one of the three lanes (x=-3/0/3). I am familiar with the Random.Range command but I am not sure I can force it to choose. Thanks in advance!

Viewing latest article 20
Browse Latest Browse All 81

Trending Articles