deleted unnecessary chunk of code such as perlin and used only random function