Like Julien said, just make a 50/50 random choice, then do the fixed angle rotation. Below is an example
import torchvision.transforms as T
transforms = T.Compose([
T.RandomChoice([
T.RandomRotation((45, 45)),
T.RandomRotation((-45, -45)),
], p=[0.5, 0.5])
])