logic for random brick spread