U
U
UnFox2018-01-31 13:57:00
PHP
UnFox, 2018-01-31 13:57:00

How to make a real random?

Does anyone have a real random function, with a complex algorithm, that it would be impossible to guess?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
D
Dmitry Dart, 2018-01-31
@gobananas

random_int - Generator of cryptographically secure random integers
Do any combinations with random_int () if you need something more complicated than a number from the range and that's it

L
Lander, 2018-01-31
@usdglander

Any event is not accidental. So, guided by your logic, knowing the state of each particle of the universe, you can predict the values ​​\u200b\u200bof the random number generator with one hundred percent probability. So you need it in another universe, and not on a toaster.

O
OKyJIucT, 2018-01-31
@OKyJIucT

Cryptographically secure random chain generator

A
Alexander Aksentiev, 2018-01-31
@Sanasol

There are no such algorithms, they will all be pseudo random.
https://www.random.org/
The only real random is here, although in fact it’s very even xs true or not.
The bottom line is that randomness is determined by the "noise" of space / atmosphere.

M
Maksim Fedorov, 2018-01-31
@Maksclub

Well, for example, each character is generated through:
random + time + mix it up
and take the first character from the received one :)

X
xmoonlight, 2018-01-31
@xmoonlight

Take any 2 streams of constantly changing independent data and do any operation between them. The result of the operation will be random.
For example, the amount of traffic sent and the amount of traffic received with either operation will give a completely unpredictable value. For fidelity, you can also use the timer (multiply by microseconds or get the remainder of the division, for example).

A
artem78, 2018-01-31
@artem78

Hardware random number generator best solution:
https://en.wikipedia.org/wiki/%D0%90%D0%BF%D0%BF%D...

B
Barmunk, 2018-01-31
@Barmunk

see UUID
The total number of unique UUID keys is 2\128 = 256\16 or about 3.4 × 10\38. This means that by generating 1 trillion keys every nanosecond, it will take only 10 billion years to sort through all possible values.
for example turnip on php
https://github.com/ramsey/uuid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question