Minecraft.BiomeGen.F15.GenLayer.nextInt C# (CSharp) Method

nextInt() protected method

protected nextInt ( int par1 ) : int
par1 int
return int
        protected int nextInt(int par1)
        {
            int var2 = (int)((this.chunkSeed >> 24) % (long)par1);

            if (var2 < 0)
            {
                var2 += par1;
            }

            this.chunkSeed *= this.chunkSeed * 6364136223846793005L + 1442695040888963407L;
            this.chunkSeed += this.worldGenSeed;
            return var2;
        }