I'm thinking of trolling my class
Why do you want to troll your class?
I just feel like trolling random people in the class
Trolling anyone is not acceptable behavior because it is annoying. Nobody is going to like you, trust you or want to be your friend if you are trolling people.
So I should just be nice to everyone and do my class work?
Yes you should. Have you ever been trolled before? I doubt it feels any good.