You have to define the angle by passing the degrees to torchvision.transforms.RandomRotation 57.
From the docs:

degrees  ( sequence  or   float   or   int ) – Range of degrees to select from. If degrees is a number instead of sequence like (min, max), the range of degrees will be (-degrees, +degrees).