Advertisement
here2share

# b_function_like_random.py

Apr 16th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # b_function_like_random.py !!! just a fun project... not recommended
  2.  
  3. import time
  4. import re
  5.  
  6. def rnd(min,max=0):
  7.     t=re.sub("\D", "", str(time.clock())[4:])
  8.     t=int(t)
  9.     if not max:
  10.         if min:
  11.             max=min
  12.             min=0
  13.     else:
  14.         max -= min
  15.     x=t % (max+1) + min
  16.     return x
  17.  
  18. def p(z):
  19.     print z
  20.     print
  21.  
  22. while 1 : p(rnd(50000))
  23. print "*"*50
  24. for z in 'z'*200 : p(rnd(50,100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement