3d random number generator with ramp