Drawing.ImageProcessing/Quantizers/Helpers/FastRandom.cs
/// <summary>
/// Generates a random int over the range 0 to int.MaxValue, inclusive. 
/// This method differs from Next() only in that the range is 0 to int.MaxValue
/// and not 0 to int.MaxValue-1.
/// 
/// The slight difference in range means this method is slightly faster than Next()
/// but is not functionally equivalent to System.Random.Next().
/// </summary>
Generates a random int over the range 0 to int.MaxValue, inclusive.
This method differs from Next() only in that the range is 0 to int.MaxValue
and not 0 to int.MaxValue-1.

The slight difference in range means this method is slightly faster than Next()
but is not functionally equivalent to System.Random.Next().
Generates a random int over the range 0 to int . MaxValue inclusive . This method differs from Next () only in that the range is 0 to int . MaxValue and not 0 to int . MaxValue - 1 . The slight difference in range means this method is slightly faster than Next () but is not functionally equivalent to System . Random . Next () .
public int NextInt()
        {
            uint t = _x ^ (_x << 11);
            _x = _y; _y = _z; _z = _w;
            return (int)(0x7FFFFFFF & (_w = (_w ^ (_w >> 19)) ^ (t ^ (t >> 8))));
        }
public int NextInt ( ) { uint t = _x ^ ( _x << 11 ) ; _x = _y ; _y = _z ; _z = _w ; return ( int ) ( 0x7FFFFFFF & ( _w = ( _w ^ ( _w >> 19 ) ) ^ ( t ^ ( t >> 8 ) ) ) ) ; }
Generates a random int over the range 0 to int.MaxValue, inclusive.
Generates a random int over the range 0 to int . MaxValue inclusive .