Advertisement
rfmonk

random_seed.py

Jan 23rd, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import random
  5.  
  6. random.seed(1)
  7.  
  8. for i in xrange(5):
  9.     print '%04.3f' % random.random(),
  10. print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement