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; } } } }