Python - random库

Python语言程序设计 嵩天、黄天羽、礼欣 Python - random库 概述 采用梅森旋转算法生成的(伪)随机序列中元素 根据随机数种子生成随机数 基本随机数函数: seed(), random() 扩展随机数函数: randint(), getrandbits(), uniform(), randrange(), choice(), shuffle() 基本随机函数 扩展随机数函数
相关文章
相关标签/搜索