On Jul 23, 10:11 pm, Larry Bates <larry.ba... at websafe.com`> wrote: > import glob > random.choice([f for f in glob.glob(root, "*")]) glob.glob only accepts one argument though, did you mean root + "*"? It also returns folders as well as files, though, and the list comprehension is not necessary given it returns a list itself.