Hot answers tagged


You are using the public static int Range(int min, int max); overload, which as per the documentation is inclusive for the lower boundary, and exclusive for the upper boundary. The documentation you see in Visual Studio is for the version accepting floating point parameters. The overload accepting integers is documented below the floating point version on ...

Only top voted, non community-wiki answers of a minimum length are eligible