Mutual exclusive (random) Write or Read requests

In reply to scorbetta:

Do an exercise for yourself and try to figure out all the possible results you could get from calling randomize() that satisfy the constraints, then read the link in my answer. Or do it in the reverse order.