Communication Patterns for Randomized Algorithms