Python Forum
Real Random Number Generator
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Real Random Number Generator
#21
This is NOT a put down; it's genuine advice, as I fear for your well being: seek some psychiatric help, as soon as you can, because you are clearly unwell.
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply
#22
Quote:Do you think that foreign countries have not seen this data?

The only people who might not be able to read it are North Koreans and the rest of the world doesn't care. If your code were that valuable, many people would have contacted you.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#23
I am a seventy-four-year-old private researcher, working on this project for thirty-five years. I have made encryption that CANNOT be broken by a quantum computer. People have been trying to create unbreakable encryption for over two thousand years without success.

From Art of problem-solving forum: College Math, Undergraduate and Graduate level.
Naenaendr 434 posts
“This work is very good.
Despite it not being very well-known, this is nearly identical to what is used in some parts of Suite B cryptography, which is already massively used in the United States. Although the algorithm is a bit different (contains other intricacies) the idea of "cannibalizing on a computer's unpredictability" when it comes to time is being currently used. It is a very good idea and definitely not one that I would have come up with myself!”

There are two forums. Mathisfun.com is the first, having complete data with all supporting programs.
https://www.mathisfunforum.com/viewforum.php?id=2
then look for “Possible ‘new knowledge’ by woodturner550. There are two pages!
***************************

https://artofproblemsolving.com/community Then go to College Math, then under statistics, then “Possible ‘new knowledge’ by woodturner550.
**************************

It has been a beautiful research project. First, figuring out that the way currently being used is a dead end, unsecure. Then searching for another way to accomplish secure encryption. It turns out that “real random numbers” are key to secure encryption.

Then there is the possibility that “random numbers” are the fifth basic part of mathematics. With the five parts of basic math, upper mathematics is clearer and complete.


I hope I am not breaking some rule. Only way to do this. This is for everyone worldwide.
buran write Dec-21-2024, 09:54 AM:
Please, don't create new threads unnecessarily or multiple accounts
Reply
#24
If you want to give a permanent home to your work, you could just create a github account and upload your work there. Then everybody could see it.
« We can solve any problem by introducing an extra level of indirection »
Reply
#25
@Gribouillis
I merged the new thread with the old one from a duplicate (original) account of the same person
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#26
When I apply an algorithm called approximate entropy: https://en.wikipedia.org/wiki/Approximate_entropy

Then with 10000 numbers it suggests a moderate entropy:
Approximate entropy of the generated sequence: 0.6595376770756178

import time
import random
import math


def approx_entropy(time_series, run_length, filter_level) -> float:
    """
    Approximate entropy

    >>> import random
    >>> regularly = [85, 80, 89] * 17
    >>> print(f"{approx_entropy(regularly, 2, 3):e}")
    1.099654e-05
    >>> randomly = [random.choice([85, 80, 89]) for _ in range(17*3)]
    >>> 0.8 < approx_entropy(randomly, 2, 3) < 1
    True
    """

    def _maxdist(x_i, x_j):
        return max(abs(ua - va) for ua, va in zip(x_i, x_j))

    def _phi(m):
        n = time_series_length - m + 1
        x = [
            [time_series[j] for j in range(i, i + m - 1 + 1)]
            for i in range(time_series_length - m + 1)
        ]
        counts = [
            sum(1 for x_j in x if _maxdist(x_i, x_j) <= filter_level) / n for x_i in x
        ]
        return sum(math.log(c) for c in counts) / n

    time_series_length = len(time_series)

    return abs(_phi(run_length + 1) - _phi(run_length))


if __name__ == "__main__":
    import doctest

    doctest.testmod()


def generate_timing_based_random_numbers(count, lower, upper, short_time, offset_time):
    random_numbers = []
    while len(random_numbers) < count:
        start_time = time.time()
        start_time2 = start_time - offset_time
        time.sleep(short_time)
        end_time = time.time()
        total_seed = end_time - start_time2
        random.seed(total_seed)
        random_numbers.append(random.randint(lower, upper))
    return random_numbers

# Generate 1000 random numbers in the range [0, 1]
numbers = generate_timing_based_random_numbers(
    count=10000,
    lower=0,
    upper=1,
    short_time=0.00000000000001,
    offset_time=0.03258312993051001,
)

# Calculate approximate entropy
entropy = approx_entropy(numbers, run_length=2, filter_level=0.5)
print(f"Approximate entropy of the generated sequence: {entropy}")
Reply
#27
I am impressed at how dummied down people are after education by the governors of the world. If they wanted, you to ‘think’ they would teach you deductive logic so you could think clearly about a subject.
If you don’t have the education or understanding that you cannot know the future, this is proof their education or lack of education is working.
Have you even considered that only the knowledge they want you to have is lacking some parts. With all the data from the space race, you and I cannot get all the scientific data. Yet it is our tax dollars that paid for it.
Reply
#28
(Dec-21-2024, 06:13 PM)woodturner Wrote: I am impressed at how dummied down people are after education by the governors of the world. If they wanted, you to ‘think’ they would teach you deductive logic so you could think clearly about a subject.
This looks like a conspiracy-theorist's point of vue: everybody can learn deductive logic if they want. Everything necessary is available online, nobody prevents you from learning.

Instead of moaning about conspiracy by the «governors of the world», you could use some critical ability, and learn how people try to approach objectively the regularity or unpredictability of sequences. @ratwolf 's answer looks like a starting point for an inquiring mind.
buran and Larz60+ like this post
« We can solve any problem by introducing an extra level of indirection »
Reply
#29
Look at the bait and switch with REPUBLIC and DEMOCRACY. The UNITED STATES is a REPUBLIC! In school you are taught it is a DEMOCRACY. You cannot have it both ways. People are easier to lead IF the think they have a say.
No conspiracy, fact. Wake up people.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Passcode Generator function romeo777 2 3,474 Jan-06-2021, 01:46 PM
Last Post: buran
  random two-word domain name generator rootVIII 0 2,845 Aug-06-2019, 03:15 AM
Last Post: rootVIII
  Infinate Number Generator Larz60+ 6 5,461 Sep-18-2018, 06:23 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020