Linear congruential random number generator

Demonstrate the principal idea of getting random bits
1,1K download
Aggiornato 5 ago 2014

Visualizza la licenza

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

Cita come

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

Compatibilità della release di MATLAB
Creato con R2013b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0