Abacus.SinglePrecision.Matrix44Tests.GetNextRandomSingle C# (CSharp) Method

GetNextRandomSingle() static private method

Helper function for getting the next random Single value.
static private GetNextRandomSingle ( ) : System.Single
return System.Single
        static Single GetNextRandomSingle ()
        {
            Single randomValue = rand.NextSingle();

            Single zero = 0;
            Single multiplier = 1000;

            randomValue *= multiplier;

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

            if( randomBoolean )
                randomValue = zero - randomValue;

            return randomValue;
        }
Matrix44Tests