close all;
N = 1e5;

XY = rand(N,2);
Z = mod(sum(XY,2),1);
hist(Z,50);