I like to keep a flashlight on my nightstand in case of a power outage or when I don't want to turn on the lights for a middle-of-the-night trip to the bathroom.
In my semi-somnolent state, I have been known to send the flashlight rolling away. A simple solution is to wrap several elastics around the flashlight. It makes it easier to grip, too!