randomly frisking the average people walking by is a stupid policy though
They don’t do that. They have to suspect you of having committed a crime or about to commit a crime. They can also only seize illegally possessed weapons. Even if they find illegal substances while using stop and frisk, they aren’t admissible.
You’re completely missing the context.