From dbf768ca3d52e965910e89647a754e9bcd85e20a Mon Sep 17 00:00:00 2001 From: Ivan Matantsev Date: Wed, 16 May 2018 14:01:58 -0700 Subject: [PATCH] fox NextSigned method --- src/Microsoft.ML.Core/Utilities/Random.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.ML.Core/Utilities/Random.cs b/src/Microsoft.ML.Core/Utilities/Random.cs index 9590d96600..88dd45209f 100644 --- a/src/Microsoft.ML.Core/Utilities/Random.cs +++ b/src/Microsoft.ML.Core/Utilities/Random.cs @@ -151,7 +151,7 @@ public int NextSigned() { // Note that, according to the documentation for System.Random, // this won't ever achieve int.MaxValue, but oh well. - return _rnd.Next(int.MinValue, int.MinValue); + return _rnd.Next(int.MinValue, int.MaxValue); } }