Hi i m using this Integer but he's returning 2 EVERY time : Code (CSharp): int jumpOrSlide = Random.Range(1,2);
int random is maximum exclusive. I would have thought that returned 1 every time. either way, increase the maximum value
Oh yes sorry I meant 1 is returning every time. I Increased the max value to 3 and now its working thank you !
To clarify in case you weren't sure, what JamesLeeNZ is saying is that random.range picks a number from (& including) the first number up to (but excluding) the second number. In your case it would be picking a number from 1 to 1.