Python Random模块
import random
print("生成1个随机数".center(20, "-"))
int_ = random.choice(range(1,10))
print(int_)
print("生成10个随机数".center(20, "-"))
lists_=random.choices(range(1,100),k=10,weights=range(1,100))
print(lists_)
print("生成一个无序不重复列表".center(20, "-"))
lists = random.sample(range(0, 100), 10)
print(lists)
print("生成一个随机符点数".center(20, "-"))
print(random.uniform(0,10))
print("生成一个整数".center(20, "-"))
print(random.randint(0,10))