Yeah, and the only reason these random stops are allowed is because some people willingly comply even though they don't have to (probably because they don't know that the officers have no legal right to stop and search their car). If you're a fan of this kind of "civil disobedience", I suggest this site:
http://photographyisnotacrime.com/
http://photographyisnotacrime.com/