function [locsn,nein] = RD_gen_cells(num_cells,err)
%

del_t_deg = 360/num_cells;
del_theta = del_t_deg*pi/180;
theta = [0:del_theta:2*pi-del_theta];
locs = [cos(theta'),sin(theta')];
locsn = locs + err*(0.5-rand(num_cells,2));
nein = RD_neighbors(locsn);
