How to take a random picture