randomness_testsuite icon indicating copy to clipboard operation
randomness_testsuite copied to clipboard

Input Data Problem

Open Mawissh opened this issue 1 year ago • 0 comments

Hello** contributors, first of all thank you very much to provide us the coding process and a very helpful interface to calculate the NIST test. Dear Sir, I have doubt regarding the input because I want to test the randomness of the chaotic map in which firstly, we generate the random sequence by the chaotic map and then convert it into binary string like this

n = 1000;M=1032; m=9; cx = zeros(1,n); cy = zeros(1,n); cz = zeros(1,n); cx(1) = 0.121; cy(1) = 0.31; cz(1) = 0.18; b = 0.118; a= 2.72; for j = 1 : n-1 cx(j+1) = cos(acx(j))sin(1/(cy(j)(1-cz(j))^2)); cy(j+1) = sin(acx(j)cy(j)+bcz(j)); cz(j+1) = cx(j); end Xx= abs(cx*10^6);

%%Convert the sequence to a binary sequence for g = 1:1000 seq{1, g} = dec2bin(Xx(1, g)); data.txt

  • #end e = strrep(strjoin(seq), ' ', '');

**This is my MATLAB code to generate binary string from the chaotic map now I save the the output binary string into text file using Notepad and then in your interface when I choose input binary file and then execute the test it gives me very strange values of some tests like Approximate entropy test, Runs Test only Random excursion test pass. Can you explain me how can I use your interface to calculate the ### pvalues. @stevenang #13 @splch @ThexXTURBOXx

Mawissh avatar Sep 07 '23 18:09 Mawissh