#write a program that randomly generate the number of integers between 100 #and 1000 ints between -1 and 1 #the program counts the number of zeros, number of -1's, and number of 1's import random size = random.randint(100,1000) print("size=", size) c0=0 cneg1=0 c1=0 print("program generated the following random sequence") for i in range(size): num=random.randint(-1,1) # print(num) if(num==0): c0=c0+1 elif(num==-1): cneg1=cneg1+1 else: c1=c1+1 print("Results are") print(c0,"zeros") print(cneg1,"-1's") print(c1,"1's")