randomized building pattern