randomness_testsuite
randomness_testsuite copied to clipboard
Input Data Problem
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), ' ', '');