Skip to content

This procedure is designed to evaluate the randomness of a sequence of bytes generated by a source. The test is conducted using statistical analysis with the help of online tools.

License

Notifications You must be signed in to change notification settings

Szymon-Czuszek/Binary-Randomness-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ข Binary Randomness Test

This procedure is designed to evaluate the randomness of a sequence of bytes generated by a source. The test is conducted using statistical analysis with the help of online tools.

๐ŸŽฏ Purpose

The purpose of this procedure is to determine if a given sequence of bytes exhibits characteristics of randomness. It utilizes statistical tests to analyze the distribution of ones and zeros within the byte sequence.

๐Ÿ› ๏ธ Tools Used

  • ๐Ÿ•น๏ธ Selenium: For web automation to interact with online tools.
  • ๐ŸŒ Requests: For making HTTP requests.
  • ๐Ÿงญ Chrome WebDriver: Used for browser automation.

๐Ÿ“‹ Procedure Overview

  • โฑ๏ธ Record the start time of the procedure.
  • ๐Ÿš€ Initialize the WebDriver for Chrome.
  • ๐ŸŒ Navigate to random.org to generate a sequence of random bytes. Pictures/Random.png
  • โš™๏ธ Configure the byte generation settings (e.g., number of bytes).
  • ๐Ÿ“ฅ Retrieve the generated byte sequence.
  • ๐Ÿงน Format and preprocess the byte sequence.
  • ๐Ÿ”ข Calculate the count of ones and zeros in the sequence.
  • โž– Compute the absolute difference between the counts.
  • ๐Ÿงฎ Calculate the test statistic (Sobs).
  • ๐Ÿ“Š Perform statistical analysis using online tools to determine randomness.
  • โน๏ธ Record the end time of the procedure.
  • โณ Calculate the elapsed time of the procedure.

โ–ถ๏ธ How to Use

  • ๐Ÿ’ป Ensure Python and the necessary libraries (selenium, requests) are installed.
  • ๐Ÿงฉ Download and configure the appropriate WebDriver for Chrome.
  • ๐Ÿƒโ€โ™‚๏ธ Run the script and observe the output.
  • ๐Ÿ” Interpret the results based on the statistical analysis.

๐Ÿ“ Note

  • ๐ŸŒ This procedure utilizes online tools for statistical analysis. Ensure a stable internet connection.
  • ๐Ÿ”ง Adjust the byte generation settings and statistical parameters as needed.
  • ๐ŸŽฒ Results may vary depending on the randomness of the generated byte sequence.

๐Ÿ“„ License

This procedure is licensed under the MIT License. See the LICENSE file for details.

About

This procedure is designed to evaluate the randomness of a sequence of bytes generated by a source. The test is conducted using statistical analysis with the help of online tools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages