Proper way to add noise to signal

I’m adding another answer since it strikes me that Steven’s is not quite correct and Horchler’s suggestion to look inside function awgn is a good one. Either MATLAB or Octave (in the communications toolbox) have a function awgn that adds (white Gaussian) noise to attain a desired signal-to-noise power level; the following is the relevant … Read more

Gradient Circles for Map Generator

As I mentioned in the comment diamond and square is much easier with good enough results. So the algorithm: configure generation properties Here you need to have set of parameters like min,max elevation, sea level, elevation ranges for vegetation, sand/rock/dirt, etc, slope parameters etc. create terrain height map I call it zed[][] For this you … Read more