import random for i in range(10): x = random.random() a = x * 10 b = x * 100 print a & b