The quoted ranges are based on EPA estimates, who regulate the conditions under which the ranges are computed for ICE and BEV cars. The actual range you get varies based on weather (rain etc), temperature, your driving speed and style etc. Just like it does for ICE, except for BEVs there is a wider variance with temperature as a result of battery chemistry.
My last ICE car had a mileage range indicator from a full to empty tank, and while accurate it rarely gave me "full" range after I filled the tank (which would have been rated MPG per EPA multiplied by tank capacity). EPA estimates are artificial in that they are done in very controlled environments (e.g. run without A/C or heaters on etc). Really, you can only use them for comparison shopping, though my experience has been that the M3 gets pretty close to quoted range in summer with moderate driving.