Dwarrowdelf.MWCRandom.MWCRandom C# (CSharp) Method

MWCRandom() public method

public MWCRandom ( IntVector2 p, int seed ) : System
p IntVector2
seed int
return System
        public MWCRandom(IntVector2 p, int seed)
        {
            m_z = Hash.HashUInt32((uint)p.GetHashCode());
            m_w = (uint)seed;
            if (m_z == 0)
                m_z = 1;
            if (m_w == 0)
                m_w = 1;
        }

Same methods

MWCRandom::MWCRandom ( IntVector3 p, int seed ) : System
MWCRandom::MWCRandom ( uint seed1, uint seed2 ) : System