Advertisement
desdemona

generator

Oct 13th, 2015
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import uuid
  2. import random
  3.  
  4. str_len = 1000
  5.  
  6. for i in range(0, 100000):
  7.     a = b = ""
  8.     a_len = random.randrange(1, str_len + 1)
  9.     b_len = random.randrange(1, str_len + 1)
  10.     while len(a) < a_len:
  11.         a += str(uuid.uuid4())
  12.     while len(b) < b_len:
  13.         b += str(uuid.uuid4())
  14.  
  15.     if len(a) > str_len:
  16.         a = a[0:str_len]
  17.     if len(b) > str_len:
  18.         b = b[0:str_len]
  19.  
  20.     print(str(a) + " "+str(b) + "\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement