A bit leaner than my last version.
size(529,529);for(int x=1,y=0,n=23;x<n*n;x++){int r=int(random(2))*n,t=x%n*n;line(t+r,y,t+n-r,y+n);if(t==0)y+=n;}
size(529, 529);
for(int x=1, y=0, n=23; x<n*n; x++)
{
int r=int(random(2))*n, t=x%n*n;
line(t+r, y, t+n-r, y+n);
if (t==0) y+=n;
}
:)