Ensures the half bricks are randomised in pairs to preserve the total
robust_random(x, val)
x
x.
val
Value.