what does it mean when a guy randomly compliments you?
It means he likes you OR he just wants something from you. Some young men make a bet with their friends that they can kiss you for instance: then their compliments do not mean anything in terms of feeling. Take your time and a cool head. If it doesn't seem sincere, it is flattery.