I need to randomise participants to two groups which we can call 'A' and 'B'. As a further complication, I need to use 'block randomisation'. If you use blocks of four for example, they are 6 different patterns possible:
AABB, BBAA, ABAB etc etc.
If you then generate a random number between 1...