Function with many local minima

I've been working on a decentralized algorithm for finding local minima. Can anyone give me a few examples of mappings of the form F:R→R that have multiple local minima. I'm having problems defining neighbourhood on mappings from R2→R, so I thought I'll test it out on single variable functions first.