VoxelTerrain.NoiseCube.RandomizeValues C# (CSharp) Method

RandomizeValues() public method

Randomizes all values in a cube.
public RandomizeValues ( ) : void
return void
        public void RandomizeValues()
        {
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    for (int z = 0; z < depth; z++)
                    {
                        values[x, y, z] = (float)random.NextDouble() * 2 - 1;
                    }
                }
            }
        }