I verified your sketch on a T4.1 and with or without the analogRead(randomVar ); line, it shows a serial USB device [COM port].
Did you set Menu > Tools > USB Type to Serial?

Using Arduino 1.8.13...