Guest User

fizzbuzz

a guest
May 20th, 2013
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import random
  4.  
  5. for i in range(0, 100):
  6.     if not i % 15:
  7.         random.seed(1178741599)
  8.     print [i+1, "Fizz", "Buzz", "FizzBuzz"][random.randint(0,3)]
Advertisement
Add Comment
Please, Sign In to add comment