Using System.Random the below always returns 0. I need a random number between 0 and 1. It always returns 0 I would expect some distribution O's and 1's. Thanks
Random random = new Random(); int randomInt = random.Next(0, 1) See the documentation for this method: http://msdn.microsoft.com/en-us/library/2dx6wyd4.aspx
The number range returned will be from zero to zero. Greater or equal to the first value and less than the second value.
int?