private int random(int x) {
		x += (int)(((distribution == GAUSSIAN ? randomNumbers.nextGaussian() : 2*randomNumbers.nextFloat() - 1)) * amount);
		if (x < 0)
			x = 0;
		else if (x > 0xff)
			x = 0xff;
		return x;
	}
Get the density of the noise.
@return the density
@see #setDensity
tomighty-swing/src/main/java/com/jhlabs/image/NoiseFilter.java