True random number generator via audio signal conversion

The application receives a signal from a microphone and produces random numbers through the XOR function merger.
12 Downloads
Updated 21 Feb 2025

View License

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 Linux
Version Published Release Notes
2.1

Added research publication information

2.0

Added decimal digits generation

1.0