ISSN 0021-3454 (print version)
ISSN 2500-0381 (online version)
Menu

11
Issue
vol 67 / November, 2024
Article

DOI 10.17586/0021-3454-2024-67-4-338-344

UDC 004.421.5

RANDOM NUMBER GENERATION FOR INTERACTIVE APPLICATIONS USING EXTERNAL SENSORS

D. A. Bulgakov
St. Petersburg State University of Aerospace Instrumentation Department of Applied Informatics; Senior Lecturer


Read the full article 
Reference for citation: Bulgakov D. А. Random number generation for interactive applications using external sensors. Journal of Instrument Engineering. 2024. Vol. 67, N 4. P. 338—344 (in Russian). DOI: 10.17586/0021-3454-2024-67-4-338-344.

Abstract. A method is presented for obtaining pseudo-random numbers to be used further in the development of interactive applications on the Unity engine with the collection of information from pressure and color sensors connected to the Arduino microcontroller. The method involves using the results of periodic measurements of pressure, temperature, illumination, and colors on RGB channels in a room, bit shifting them by a random number of digits, obtaining the “grain” of a pseudo-random number generator by taking the remainder after comparing the number with the current UNIX time. An application is been developed that implements the proposed method of generating pseudorandom numbers. The uniformity of distribution is checked and the correlation coefficient is assessed using a sample of random numbers.
Keywords: random numbers, pseudo-random numbers generator, interactive applications, pressure sensor, color sensor, Arduino, Unity

References:
  1. Andreeva E.G., Molchalin V.A. Young Russia: advanced technologies into industry, 2023, no. 1, pp. 3–9, DOI 10.25206/2310-4597-2023-1-3-9. (in Russ.)
  2. Chayko V.I. Issledovaniya molodykh uchenykh (Research by Young Scientists), Proc. of the XXXII Intern. Scientific Conf., February 20–23, 2022, Kazan, 2022, рр. 10–15. (in Russ.)
  3. Von Neumann J. National Bureau of Standards Applied Mathematics Series, 1951, no. 12, pp. 36–38.
  4. Knuth D. The Art of Computer Programming, vol. 2: Seminumerical Algorithms, Massachusetts, Addison-Wesley, 1997, 762 p.
  5. Belov A.A., Tintul M.A., Kalitkin N.N. Computational Mathematics and Mathematical Physics, 2020, no. 11(60), pp. 1747–1753, DOI 10.31857/S0044466920110046.
  6. Orlov M.A., Nechaev K.A., Ivanov N.A. Science and business: ways of development, 2022, no. 4(130), pp. 53–58. (in Russ.)
  7. Romankov S.V. Young scientist, 2022, no. 33(428), pp. 4–10. (in Russ.)
  8. Dhirendra K., Chaurasia U., Mishra S. Journal of Circuits, Systems and Computers, 2021, no. 15(30), pp. 2150285.
  9. Arduino Software, https://docs.arduino.cc/hardware/uno-rev3.
  10. https://3d-diy.ru/wiki/arduino-datchiki/sensor-bmp280/. (in Russ.)
  11. Wave share Electronics. TCS34725 Color Sensor User Manual, https://www.waveshare.com/w/upload/ b/bb/TCS34725_Color_Sensor_user_manual_en.pdf.
  12. Drozdova I.I., Zhilin V.V. Tekhnicheskiye nauki v Rossii i za rubezhom (Technical Sciences in Russia and Abroad), Materials of the VII Intern. Scientific Conf., Moscow, 2017, рр. 13–16. (in Russ.)
  13. Goncharuk V.S., Atamanov Yu.S., Gordeev S.N. Young scientist, 2017, no. 8(142), pp. 20–23. (in Russ.)
  14. Kutuzov O.I., Tatarnikova T.M. Factory laboratory. Diagnostics of materials, 2017, no. 3(83), pp. 65–70. (in Russ.)
  15. Kolesova N.A. Vestnik of Astrakhan State Technical University. Series: Management, Computer Sciences and Informatics, 2011, no. 1, pp. 119–123. (in Russ.)
  16. Grigoriev A.Yu. Scientific Notes of ULSU. Series: Mathematics and Information Technology, 2017, no. 1, pp. 22–28. (in Russ.)
  17. Pakhomov V.A., Titovskaya E.P. Young scientist, 2020, no. 4(34), pp. 70–75. (in Russ.)
  18. Zubkov А.М. Mathematical Aspects of Cryptography, 2021, no. 3(12), pp. 31–48, DOI 10.4213/mvk374. (in Russ.)