Skip to main content

Week 8 [14-20.12.20] How random numbers are generated in our computers? Are they really random?

 





    How random numbers are generated in our computers? Are they really random?

 

Random numbers have been used by people for ages. According to the current archaeological research one of the oldest known dices were discovered in a 24th century B.C. tomb in the Middle East. So in general it is not any new concept as some people may think.



Usage of random numbers is really wide. They are used in cryptography, simulations, computer games and of course in a gambling. But there is much more examples. In these days and age where computers are dominating and their role grows pretty fast, also as a result a question is being formulated – how do they cope with generating random numbers? If they are so powerful these days that should be a piece of cake for them. Are they really powerful enough to do this? Let’s find out.

Please watch the following video and answer the questions.


https://www.youtube.com/watch?v=GtOt7EBNEwQ


Questions:

1.       Did you know how „random” numbers are generated by computers (algorithms)? According to the video what is the difference between random and pseudo random numbers?

2.       Have you ever meet with the ‘seed’ term?

3.       Do you know any other methods not mentioned in the video to obtain truly random sequences?

 

Sources and some additional informations

https://www.youtube.com/watch?v=GtOt7EBNEwQ

https://engineering.mit.edu/engage/ask-an-engineer/can-a-computer-generate-a-truly-random-number/

https://tashian.com/articles/a-brief-history-of-random-numbers/

 

Images used in article

https://www.sciencealert.com/images/2018-01/images/2017-12/processed/roman-era-dice_1024.jpg

https://www.howtogeek.com/wp-content/uploads/2014/02/video-poker-gambling-randomness.jpg



Comments

1. Yes, I knew how random numbers are generated by computers. The difference between random and pseudorandom is the number of combinations to get a repeating pattern.
2. I have also met the "seed" term. It is often used in 3D graphics. For example, when you render an animation you can also animate the seed. This provides a random generation of virtual rays that calculate the final image. Animated seed can generate similar noise that is present in traditional movies.
3. I heard that sometimes random numbers are generated from signals from space and in electronics from the Hi-Z state (the state between logical 0 and 1). Unfortunately, I don't know any other methods.
Kacper N said…
Thanks for your comment Jędrzej, I didn't know about usage of seed in 3D graphics, but it seems interesting after reading your description. Are there another examples of seed usage in graphics? Or it is only used to generate noise effect, as you described?
The topic of generating random numbers or any random events is very interesting. I appreciate this video, but I am not sure if today's deterministic approach of science would fully agree with what is presented there. Today's scientific knowledge allows us to state that every event is predictable, having sufficient knowledge about the initial states of matter and energies within the system. The only exception is quantum physics, which slips beyond the limits of Newtonian physics known and observable by us. The electromagnetic waves that generate white noise on the television are also diagnosable with Newtonian physics.

1. Yes, I know how pseudorandom numbers are generated on computers and servers. I also know that there are free accesible internet random number generators in which the "seed" is generated by quantum computers working in research centers and universities around the world, using quantum physics to generate numbers considered according to today's science to be truly random. However from the user's point of view, there is no difference in getting a random number from an algorithm running on a remote private server and a magic number coming from a quantum computer.

2. Yes. The concept of "seed" in the context of generating random numbers and cryptography has been known to me for many years. Of course, the name of the video game "Minecraft" should appear here, in which the world is generated using the "seed"

3. Any method of observing natural phenomena that happen very quickly and it is difficult to recover data on the past behavior of given systems would be a good material for a pseudorandom number generator.
Kacper N said…
Thanks for participation in discussion Karol. I agree with your statement, and understand your point of view. It's basically hard to say what is really random, and as you stated we can allege that some events are predictable, if we have sufficient knowledge.
According to quantum physics - thats a very good point.

Reffering to your second answer - basically, I mostly agree with your opinion, but it depends of the future usage of that number, which we obtained from such a service.
1. Yes, it's one of the principles of computing and cybersecurity in general. The video states that random values are the ones we find in nature: current time, electromagnetic field generated by tv etc. and the pseudorandom ones are generated by a computer. I don't really agree with this division, in my opinion all information on macro scale is pseudorandom, it's just a matter of whether you have all the data necessary to determine the certain outcome. It might be hard for us to determine the intensity of cosmic radiation on a certain day, but with sufficient knowledge of the surrounding universe it should be possible.

2. Yup, as one of the previous readers have mentioned, video game "Minecraft" uses seeds to generate worlds. I think I've also seen it in some computer graphics applications, but I'm not sure about that.

3. Pretty much everything that's happening in nature and measurable is a good seed. Choosing an unusual one is also an additional security measure in itself, because if the source of the seed is unknown, it's harder to replicate.
Jakub Dzień said…
1.Did you know how „random” numbers are generated by computers (algorithms)? According to the video what is the difference between random and pseudo random numbers?

Yes of course. If I remember correctly, there was one whole lecture on this subject in the first year. pseudo-random numbers have a finite number of combinations which makes them not completely random.

2.Have you ever meet with the ‘seed’ term?

Yes, but I do not fully understand this topic. I know minecraft fans have spent a lot of time and computing power on their computers to find the seed that was used to generate the world from the game menu screen.

3.Do you know any other methods not mentioned in the video to obtain truly random sequences?

I've never been interested in that, so no.
1.Did you know how „random” numbers are generated by computers (algorithms)? According to the video what is the difference between random and pseudo random numbers?

Yes I have watched 1 video many years ago. Pseudo-Random numbers don't have an infinite count of their combinations - so they are not random in 1000%.

2.Have you ever meet with the ‘seed’ term?

No I havent.

3.Do you know any other methods not mentioned in the video to obtain truly random sequences?

I have never been interested in this topic so I cant say anything about other methods to obtain truly random sequences.

Popular posts from this blog

Week 11 [03-09.06.2019] The problem with ecological cars emission in UK

The problem with ecological cars emission in UK Since the adoption of the European Emission Allowance Directive in the European Parliament, all car makers have tried to submit. Since 1992, the Euro I standard has been in force, which limited the emission of carbon monoxide to the atmosphere. The Euro VI standard currently applies, which limits the series of exhaust gases. These include: hydrocarbons, nitrogen and carbon oxides, and dust.   The most significant change was brought by the Euro IV standard. For the first time it introduced the limitation of nitrogen oxides, which are responsible for the harmful compounds of smog.   What is smog?   Smog consists of sulfur oxides, nitrogen and carbon. In addition, solid substances such as suspended dust (PM). Dust suspend in atmospheric aerosols may be in liquid and solid form. These can be particles of sea salt, clouds from the Sahara and artificial compounds made by people. These compounds often come fr

Week 12 (12.01-18.01.15) Are you an early bird or a night owl ?

Owls are nocturnal creatures. They’re wide awake at night and they sleep during the day. If this sounds like bliss to you, then, like about 20 percent of the population who find themselves most active at around 9 pm, you may fall into the same category as our feathered friend. Night owls often have difficulty waking up in the morning, and like to be up late at night.  Studies of animal behaviour indicate that being a night owl may actually be built into some people’s genes. This would explain why those late-to-bed, late-to-rise people find it so difficult to change their behaviour. The trouble for night owls is that they just have to be at places such as work and school far too early. This is when the alarm clock becomes the night owl’s most important survival tool. Experts say that one way for a night owl to beat their dependence on their alarm clocks is to sleep with the curtains open. The Theory is that if they do so, the morning sunlight will awaken them gently and naturally.

Week 4 [06-12.11.2017] This is what happens when you reply to spam email.

James Veitch is a British comedian. In today’s Ted Talk James with characteristic for himself a sense of humor shows how he deals with spam emails and why responding to junk messages may be sometimes dangerous. Questions: What do you think about James’s  way of dealing with spam? Why are junk messages legal, even though it sometimes may be a fraud? Dou you have a problem with spam? How do you deal with with it?