AIA.Lib.Maths.RandFloat C# (CSharp) Method

RandFloat() public static method

public static RandFloat ( int min, int max, int seed ) : float
min int
max int
seed int
return float
        public static float RandFloat( int min, int max, int seed )
        {
            Random random = new Random ( seed );
            float test = ( float ) ( min + ( float ) random.NextDouble ( ) * ( max - min ) );
            return test;
        }