#重複產生若干個位於0道100之間的整數,直到他們的和大於大於10000,求平均值與和
# 隨機過程必然導入random模塊
import random
num_list=[]
all=0
while all<10000:
new=random.randint(0,100)
num_list.append(new)
all+=new
print(all,all/len(num_list))
#重複產生若干個位於0道100之間的整數,直到他們的和大於大於10000,求平均值與和
# 隨機過程必然導入random模塊
import random
num_list=[]
all=0
while all<10000:
new=random.randint(0,100)
num_list.append(new)
all+=new
print(all,all/len(num_list))