I recall suddenly leaving class to purchase and subsequently consume German Dill pickles.

I told the teacher I was leaving to get some, and she said permitted my leave, though it was done so sarcastically on her part - not mine. I believe she was slightly upset at me.

And then I gave her a pickle and everything was alright.


Not quite a random food, but I would say that it was a random thing to do in the middle of class.