my 2001 330's oil level sending unit went out. Sometimes the red oil light would come on. Randomly as you describe. I swapped it out (its a $75 part...ye they charge you 150. Who cares you have the warranty) and its good as new. No more oil light.
so, my guess would be oil sender.
__________________
We all get the urge...Saturday early morning...nothing to do till noon...

BMW FTW

The aural sensations of 1st gear WOT
**CGM **(Certified Garage Mechanic)