choose random file from directory

40

choose random file from directory -

import os, random
random.choice(os.listdir("C:\\")) #change dir name to whatever

Comments

Submit
0 Comments