When you say you have version 0.2.0, you mean pytorch version?
Because that might explain everything. Pytorch v0.2.0 comes with an older torchvision that does not have the RandomRotation.
If you want to use that version of pytorch and torchvision, you need to select the right version on the documentation website 64. There you can see that there are less transforms.
If you want the newer transforms, I suggest you install pytorch v0.3.0 and the torchvision package that comes with it.
You could try building torchvision from source and still use pytorch v0.2.0, but as torchvision depends on pytorch I dont think that will work without issues.