博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理

2013年2月13日

摘要: 如今大部分编译器的随机数算法还是线性同余算法,简称LCG。线性同余算法(LCG):http://en.wikipedia.org/wiki/Linear_congruential_generatorALinear Congruential Generator(LCG) represents one of the oldest and best-knownpseudorandomnumbergeneratoralgorithms.The generator is defined by therecurrencerelation:whereis thesequenceof pseudorandom 阅读全文

posted @ 2013-02-13 22:18 扬名 阅读(3790) 评论(0) 推荐(0)