In Maryland can an officer run your tags randomly?
The police office can absolutely run your plates.
Many police cars (including most Maryland Transportation Authority Police Department cruisers) have plate scanning technology.
The officer must make a visual check to make sure that the operator of the vehicle matches the picture of the driver that appears on the officer's screen.
Just because the stop may be "good" (which it still may not be), there are certainly other defenses in a Driving While Suspended (DWS) case.
Many times, I have clients who were charges with the incorrect version of the DWS statute.