Linear congruential random number generator

版本 1.0.0.0 (48.9 KB) 作者: Michael Chan
Demonstrate the principal idea of getting random bits
1.1K 次下载
更新时间 2014/8/5

查看许可证

The objective is to demonstrate the principal idea of getting random bits, i.e. probability of occurrences in every observable module is 50%-50%.
The illusion of randomness provides such an observation.
Utilties for conversion of bin2dec and dec2bin for big integer is provided.

main executing reference usages: usage_RNG.m
Shows bits distribution.

* Caveat:
1. RNG only for short data stream use only.
2. For reference only.

If the illustrative demo has more elegant presentation, please do not hesitate to suggest and send feedback to the author.
Email: promethevx@yahoo.com.

Thank you.

Regards,
Michael Chan JT

引用格式

Michael Chan (2024). Linear congruential random number generator (https://www.mathworks.com/matlabcentral/fileexchange/47426-linear-congruential-random-number-generator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0