True Random Integer Generator
The function TRUERAND returns truly random integers using random.org's Random Integer Generator. According to random.org, the numbers are generated based on atmospheric noise and skew-corrected to generate uniform numbers. The generated numbers have been shown to pass the NIST tests for RNGs.
The range of numbers is -1e9 to 1e9 and the maximum number of values that can be generated is 10,000
USAGE:
truerand(rows,cols,min,max) returns a matrix of size rows-by-cols with random integers between min and max.
truerand(n,min,max) returns an n by 1 vector
truerand(n, m), truerand(n) and truerand use the default values min = 1, max = 100
EXAMPLES:
y = truerand
y = truerand(9)
y = truerand(6,6)
y = truerand(5,1,20)
y = truerand(3, 4, 15, 30)
For more information visit random.org
Citation pour cette source
Ameya Deoras (2026). True Random Integer Generator (https://fr.mathworks.com/matlabcentral/fileexchange/21353-true-random-integer-generator), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
A inspiré : Generate uniform pseudo-random integers from linear range.
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 | Updated license |
||
| 1.0.0.0 |
