1
1
12bugaga2020-04-18 23:54:25
Cryptography
12bugaga, 2020-04-18 23:54:25

How to check the data for their randomness?

There is a HRSG made on the knees, data naturally obtained from it, how can you check them for chance? So that it does not happen that after a certain number the data loops and repeats. Or that from two values ​​it is possible to learn the internal state of the PRNG and predict the next number. Are there tests already developed that, for example, try to guess the next number and, based on this, infer randomness?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
paran0id, 2020-04-18
@paran0id

Not an expert, but I would try to visualize the data and look at it with my eyes for repeating patterns.
randbitmap-wamp.png
UPD: https://www.random.org/analysis/

J
jcmvbkbc, 2020-04-19
@jcmvbkbc

How can you test them for randomness?

There is no way to test them "for randomness" (because there are an infinite number of mappings that turn a regular sequence into a sequence that looks random).
But you can check the quality of the distribution with dieharder .

S
Sergey Gornostaev, 2020-04-19
@sergey-gornostaev

5e9bfe095b3f6204656820.jpeg

X
xmoonlight, 2020-04-19
@xmoonlight

Best Data Generator: Point your webcam to the sky and the problem of randomness is solved.
About PRNG: We
always use only the N-th part of the period (no more than 1/5, which is always determined before using new coefficients) and save the coefficients in the "old" ones.
After - we generate new coefficients through an infinite fraction.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question