import random for i in range(10): print str(random.randint(0, 4) - 2)
Standard input is empty
0 0 -1 1 1 2 0 -1 2 -2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!