Linear congruential random number generator
Version 1.0.0.1 (48,7 ko) par
Michael Chan
Demonstrate the principal idea of getting random bits
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.
Thank you.
Regards,
Michael Chan JT
Citation pour cette source
Michael Chan (2025). Linear congruential random number generator (https://fr.mathworks.com/matlabcentral/fileexchange/47426-linear-congruential-random-number-generator), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2013b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxCatégories
En savoir plus sur Random Number Generation dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.1 | . |
||
| 1.0.0.0 |
