random.Next(0,5)
It never returns the 5 (but sometimes returns the 0.) Why? I thought these are just boundary values that can be returned. Thanks>
Good way to remember it is to consider max as amount of numbers from which it takes random number. So random.Next(0,2) means that it takes random out of 2 numbers starting from 0: 0 and 1.
random.Next(0,2)