Abacus.DoublePrecision.Matrix44Tests.GetNextRandomDouble C# (CSharp) Method

GetNextRandomDouble() static private method

Helper function for getting the next random Double value.
static private GetNextRandomDouble ( ) : Double
return Double
        static Double GetNextRandomDouble ()
        {
            Double randomValue = rand.NextDouble();

            Double zero = 0;
            Double multiplier = 1000;

            randomValue *= multiplier;

            Boolean randomBoolean = (rand.Next(0, 1) == 0) ? true : false;

            if( randomBoolean )
                randomValue = zero - randomValue;

            return randomValue;
        }
Matrix44Tests