Accord.ThreadSafeRandom.Next C# (CSharp) Method

Next() public method

Returns a random number within a specified range.
See Random.Next(int,int) for more information.
public Next ( int minValue, int maxValue ) : int
minValue int The inclusive lower bound of the random number returned.
maxValue int The exclusive upper bound of the random number returned. /// must be greater than or equal to .
return int
        public override int Next(int minValue, int maxValue)
        {
            lock (sync) 
                return base.Next(minValue, maxValue);
        }

Same methods

ThreadSafeRandom::Next ( ) : int
ThreadSafeRandom::Next ( int maxValue ) : int