randomness_testsuite icon indicating copy to clipboard operation
randomness_testsuite copied to clipboard

Testing random sequence from matlab

Open ghost opened this issue 9 months ago • 0 comments

Hello @stevenang ! I want to check randomness in matlab with your NIST. I have a problem with generating txt and bin files as an input, I am not sure that it is exactly what is required. Could you help me?


y=randi(2,[1,2^4])-1

s = sprintf('%d', y);
fileID = fopen('test.txt','w');
fwrite(fileID,s);
fclose(fileID);

s = sprintf('%d', y);
fileID = fopen('test.bin','w');
fwrite(fileID,s);
fclose(fileID);

ghost avatar May 25 '24 22:05 ghost