Skip to content

Instantly share code, notes, and snippets.

@yuikns
Created October 22, 2014 07:15
Show Gist options
  • Save yuikns/b6189a1ebe2b0cf7b4fc to your computer and use it in GitHub Desktop.
Save yuikns/b6189a1ebe2b0cf7b4fc to your computer and use it in GitHub Desktop.
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