72

如何生成指定分布的随机数 - CSDN博客

 5 years ago
source link: https://blog.csdn.net/wangyangzhizhou/article/details/80088490?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言对于随机数平时我们还是比较常用的,一般都会直接通过各种语言原生自带的随机函数,比如 c++ 中有random()函数,java 中有 Random 类,python 有 random 模块等等。都能很方便生成随机变量,但它们有一个特点,那就是都服从均匀分布,而有些场景需要要生成不同分布的随机变量。随机变量随机变量即随机函数,通过该函数能生成每个可能事件对应的一个值。比如我们掷骰...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK