expr 018-density: sampling 2d, 3d