i never ask..
if you don't look like a creep or anthing people usually figure out themselves that you're just trying to snap some quality shots at the expense of shooting random people. and besides, if you come up to someone to ask if you can take their picture, that kinda ruins the candidness and realism of the shot. that's my take on it