Created
October 22, 2014 07:15
-
-
Save yuikns/b6189a1ebe2b0cf7b4fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def rand_digit_str(len): | |
import string | |
import random | |
return "".join([random.choice(string.digits) for n in xrange(len)]) | |
def sub_dir(): | |
return rand_digit_str(4) + "/" + rand_digit_str(4) + "/" + rand_digit_str(4) + "/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment