ataraxia2500 wrote: > > I have a function that goes through a directory and I would like to remove > randomly one of the files contained in that directory. I checked out the > random() function in the documentation but it only deals with integers. Use random.choice() instead.