Update xkcd.py

Added random support