Accord.ThreadSafeRandom.Next C# (CSharp) Method

Next() public method

Returns a nonnegative random number less than the specified maximum.
See Random.Next(int) for more information.
public Next ( int maxValue ) : int
maxValue int The exclusive upper bound of the random number to be generated. /// must be greater than or equal to zero.
return int
        public override int Next(int maxValue)
        {
            lock (sync) 
                return base.Next(maxValue);
        }

Same methods

ThreadSafeRandom::Next ( ) : int
ThreadSafeRandom::Next ( int minValue, int maxValue ) : int