True random number generator via audio signal conversion
Version 2.1 (155 KB) by
Ruslan Enikeev
The application receives a signal from a microphone and produces random numbers through the XOR function merger.
The application uses the signal from the microphone to generate a sequence of random bits, based on combining the received bits with the XOR function. The generated random bits are used to generate random numbers of the required format. The information is saved to a text file. For the initial statistical evaluation of the obtained numbers, the application constructs histograms of uniform and binomial distributions. It is assumed that the statistical quality of the obtained random numbers should increase with increasing parameters "Numbers to XOR" and "Latency". The application includes a help file describing all adjustable parameters of the application.
This application is part of the research "To the logical foundations of random number generator construction", published in Journal of Logic and Computation, https://doi.org/10.1093/logcom/exae075
Cite As
Ruslan Enikeev (2026). True random number generator via audio signal conversion (https://www.mathworks.com/matlabcentral/fileexchange/160113-true-random-number-generator-via-audio-signal-conversion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with R2022b and later releases
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
