Created
May 5, 2011 10:28
-
-
Save meehow/956839 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
#!/usr/bin/env python | |
import sys | |
from random import randrange | |
def main(digits_no): | |
return ''.join([str(randrange(0, 10)) for x in xrange(digits_no)]) | |
if __name__ == '__main__': | |
print main(int(sys.argv[1])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment