Method for verifying quality of random numbers generated by different program languages
A programming language and random number technology, which is used in the field of testing the quality of random numbers generated by different programming languages, and can solve problems such as inability to obtain random numbers.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] Here we take PHP, MATLAB, and JAVA as examples. Firstly, 20 groups of random numbers are generated by using the random number generation functions of the three programming languages, each group of random numbers is 100,000, and each number is randomly selected within 1-1000. Then use the entropy value calculation formula to calculate the entropy value corresponding to each group of random numbers, see Table 1. Perform a correlation test on the entropy value:
[0019] Table 1, the entropy value distribution table corresponding to the random numbers generated by the random number generation functions of the three programming languages
[0020] Number of groups\Program language
[0021] 4
[0022] ① Draw a scatter diagram of the entropy value, see figure 2 . It can be seen from the figure that the entropy sequence corresponding to the grouped random numbers generated by the three programming languages basically satisfies that the entropy value of...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 