VeeGen.VGArea.GetRandomTile C# (CSharp) Method

GetRandomTile() public method

public GetRandomTile ( int mOffset ) : VGTile
mOffset int
return VGTile
        public VGTile GetRandomTile(int mOffset = 0)
        {
            Debug.Assert(mOffset >= 0);
            Debug.Assert(Width - mOffset >= mOffset);
            Debug.Assert(Height - mOffset >= mOffset);

            return Tiles[VGUtils.GetRandomInt(mOffset, Width - mOffset), VGUtils.GetRandomInt(mOffset, Height - mOffset)];
        }