playing with random and cos and perlin noise