import sys n = int(sys.argv[1]) m = int(sys.argv[2]) import random for i in range(n): for j in range(m): print "%3d" % random.randint(-10,10), print