I
I
IceClan2017-08-04 15:58:16
Algorithms
IceClan, 2017-08-04 15:58:16

Algorithm for dropping a number?

A random number falls out, from 1 to 5. Can I find an algorithm if I know the last couple of numbers?
1 5 1 2 3 3 3 5 2 3 1 5 2 4 5 2 2 5 3 1 2 3 2 1 4 3 4 4 4 3 5 1 3 1 4 2 3 4 3 5 5 3 5 5 1 5 1 2 1 5 2 5 5 5 4 3 2 3 1 3 5 5 4 3 2 2 1 1 3 2 2 3 3 3

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Movchan, 2017-08-04
@Alexander1705

A random number is drawn, from 1 to 5.

There you have answered your own question.

M
Maxim Moseychuk, 2017-08-04
@fshp

We take numbers not up to 5, but up to 12. We find the algorithm. We're going to collect money from the casino. You are wonderful!

L
Labunsky, 2017-08-04
@Labunsky

It is possible if deterministic generation algorithms are used, depending on previous states. As an example, we can cite a linear-congruent method (in fact, there are a lot of similar ones). Some analysis will be required to determine the type and restore the states of the generator, but the possibility exists.
But in general, hacking a random generator is considered to predict the next result with a higher probability than the theoretical one. For this, the analysis of the number generator is not needed, it is enough to analyze the sequence. But it is possible only when using weak algorithmic or faulty physical generators.

L
Lander, 2017-08-04
@usdglander

No. Well, only with a certain probability.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question