Switch Scheduling via Randomized Edge Coloring