it's random, and it doesn't matter how many contracts you hold vs. how many the person exercising holds. For example your friend exercises 50 contracts, 50 different people with 1 contract could be assigned in theory.
I wrote 10 OEX contracts and was assigned on 5, assigned on 2 ten minutes...